/linux-4.1.27/arch/sh/mm/ |
H A D | ioremap_fixed.c | 51 unsigned int nrpages; ioremap_fixed() local 78 nrpages = size >> PAGE_SHIFT; ioremap_fixed() 79 if (nrpages > FIX_N_IOREMAPS) ioremap_fixed() 87 while (nrpages > 0) { ioremap_fixed() 92 --nrpages; ioremap_fixed() 103 unsigned int nrpages; iounmap_fixed() local 121 nrpages = map->size >> PAGE_SHIFT; iounmap_fixed() 123 idx = FIX_IOREMAP_BEGIN + slot + nrpages - 1; iounmap_fixed() 124 while (nrpages > 0) { iounmap_fixed() 127 --nrpages; iounmap_fixed()
|
/linux-4.1.27/mm/ |
H A D | early_ioremap.c | 101 unsigned int nrpages; __early_ioremap() local 135 nrpages = size >> PAGE_SHIFT; __early_ioremap() 136 if (WARN_ON(nrpages > NR_FIX_BTMAPS)) __early_ioremap() 143 while (nrpages > 0) { __early_ioremap() 150 --nrpages; __early_ioremap() 163 unsigned int nrpages; early_iounmap() local 192 nrpages = PAGE_ALIGN(offset + size) >> PAGE_SHIFT; early_iounmap() 195 while (nrpages > 0) { early_iounmap() 201 --nrpages; early_iounmap()
|
H A D | fadvise.c | 37 unsigned long nrpages; SYSCALL_DEFINE4() local 104 nrpages = end_index - start_index + 1; SYSCALL_DEFINE4() 105 if (!nrpages) SYSCALL_DEFINE4() 106 nrpages = ~0UL; SYSCALL_DEFINE4() 113 nrpages); SYSCALL_DEFINE4()
|
H A D | mprotect.c | 261 long nrpages = (end - start) >> PAGE_SHIFT; mprotect_fixup() local 281 charged = nrpages; mprotect_fixup() 325 vm_stat_account(mm, oldflags, vma->vm_file, -nrpages); mprotect_fixup() 326 vm_stat_account(mm, newflags, vma->vm_file, nrpages); mprotect_fixup()
|
H A D | truncate.c | 233 if (mapping->nrpages == 0 && mapping->nrshadows == 0) truncate_inode_pages_range() 387 * mapping->nrpages can be non-zero when this function returns even after 408 unsigned long nrpages; truncate_inode_pages_final() local 421 * nrshadows first, then decreases nrpages. Make sure we see truncate_inode_pages_final() 424 nrpages = mapping->nrpages; truncate_inode_pages_final() 428 if (nrpages || nrshadows) { truncate_inode_pages_final()
|
H A D | swap_state.c | 58 ret += swapper_spaces[i].nrpages; total_swapcache_pages() 97 address_space->nrpages++; __add_to_swap_cache() 149 address_space->nrpages--; __delete_from_swap_cache()
|
H A D | filemap.c | 128 * the nrpages update so that final truncate racing page_cache_tree_delete() 134 mapping->nrpages--; page_cache_tree_delete() 393 if (mapping->nrpages) { filemap_write_and_wait() 429 if (mapping->nrpages) { filemap_write_and_wait_range() 485 mapping->nrpages++; replace_page_cache_page() 525 mapping->nrpages++; page_cache_tree_insert() 2356 if (mapping->nrpages) { generic_file_direct_write() 2381 if (mapping->nrpages) { generic_file_direct_write()
|
H A D | shmem.c | 229 * But normally info->alloced == inode->i_mapping->nrpages + info->swapped 230 * So mm freed is info->alloced - (inode->i_mapping->nrpages + info->swapped) 239 freed = info->alloced - info->swapped - inode->i_mapping->nrpages; shmem_recalc_inode() 312 mapping->nrpages++; shmem_add_to_page_cache() 335 mapping->nrpages--; shmem_delete_from_page_cache()
|
H A D | mmap.c | 2369 long nrpages = vma_pages(vma); remove_vma_list() local 2372 nr_accounted += nrpages; remove_vma_list() 2373 vm_stat_account(mm, vma->vm_flags, vma->vm_file, -nrpages); remove_vma_list()
|
/linux-4.1.27/fs/ |
H A D | drop_caches.c | 24 (inode->i_mapping->nrpages == 0)) { drop_pagecache_sb()
|
H A D | block_dev.c | 67 if (mapping->nrpages == 0 && mapping->nrshadows == 0) kill_bdev() 80 if (mapping->nrpages == 0) invalidate_bdev() 644 ret += bdev->bd_inode->i_mapping->nrpages; nr_blockdev_pages() 1778 mapping->nrpages == 0) { iterate_bdevs()
|
H A D | inode.c | 497 BUG_ON(inode->i_data.nrpages); clear_inode() 709 if (inode_has_buffers(inode) || inode->i_data.nrpages) { inode_lru_isolate()
|
H A D | libfs.c | 33 stat->blocks = inode->i_mapping->nrpages << (PAGE_CACHE_SHIFT - 9); simple_getattr()
|
H A D | fs-writeback.c | 1385 (mapping->nrpages == 0)) { wait_sb_inodes()
|
H A D | buffer.c | 3415 unsigned long nrpages; buffer_init() local 3426 nrpages = (nr_free_buffer_pages() * 10) / 100; buffer_init() 3427 max_buffer_heads = nrpages * (PAGE_SIZE / sizeof(struct buffer_head)); buffer_init()
|
/linux-4.1.27/fs/f2fs/ |
H A D | debug.c | 60 si->node_pages = NODE_MAPPING(sbi)->nrpages; update_general_status() 61 si->meta_pages = META_MAPPING(sbi)->nrpages; update_general_status() 195 npages = NODE_MAPPING(sbi)->nrpages; update_mem_info() 197 npages = META_MAPPING(sbi)->nrpages; update_mem_info()
|
H A D | node.c | 1747 int i, idx, last_offset, nrpages; restore_node_summary() local 1754 for (i = 0; i < last_offset; i += nrpages, addr += nrpages) { restore_node_summary() 1755 nrpages = min(last_offset - i, bio_blocks); restore_node_summary() 1758 ra_meta_pages(sbi, addr, nrpages, META_POR); restore_node_summary() 1760 for (idx = addr; idx < addr + nrpages; idx++) { restore_node_summary() 1772 addr + nrpages); restore_node_summary() local
|
H A D | checkpoint.c | 115 int ra_meta_pages(struct f2fs_sb_info *sbi, block_t start, int nrpages, int type) ra_meta_pages() argument 125 for (; nrpages-- > 0; blkno++) { ra_meta_pages()
|
H A D | segment.c | 1967 int nrpages = MAX_BIO_BLOCKS(sbi); build_sit_entries() local 1970 readed = ra_meta_pages(sbi, start_blk, nrpages, META_SIT); build_sit_entries()
|
/linux-4.1.27/drivers/staging/lustre/lustre/mgc/ |
H A D | mgc_request.c | 1322 int nrpages; mgc_process_recover_log() local 1335 nrpages = CONFIG_READ_NRPAGES; mgc_process_recover_log() 1337 nrpages = CONFIG_READ_NRPAGES_INIT; mgc_process_recover_log() 1339 OBD_ALLOC(pages, sizeof(*pages) * nrpages); mgc_process_recover_log() 1345 for (i = 0; i < nrpages; i++) { mgc_process_recover_log() 1379 body->mcb_units = nrpages; mgc_process_recover_log() 1382 desc = ptlrpc_prep_bulk_imp(req, nrpages, 1, BULK_PUT_SINK, mgc_process_recover_log() 1389 for (i = 0; i < nrpages; i++) mgc_process_recover_log() 1417 if (ealen > nrpages << PAGE_CACHE_SHIFT) { mgc_process_recover_log() 1438 for (i = 0; i < nrpages && ealen > 0; i++) { mgc_process_recover_log() 1464 for (i = 0; i < nrpages; i++) { mgc_process_recover_log() 1469 OBD_FREE(pages, sizeof(*pages) * nrpages); mgc_process_recover_log()
|
/linux-4.1.27/arch/x86/mm/ |
H A D | ioremap.c | 34 unsigned long nrpages = size >> PAGE_SHIFT; ioremap_change_attr() local 40 err = _set_memory_uc(vaddr, nrpages); ioremap_change_attr() 43 err = _set_memory_wc(vaddr, nrpages); ioremap_change_attr() 46 err = _set_memory_wb(vaddr, nrpages); ioremap_change_attr()
|
/linux-4.1.27/fs/nilfs2/ |
H A D | page.c | 345 smap->nrpages--; nilfs_copy_back_pages() 356 dmap->nrpages++; nilfs_copy_back_pages() 523 if (inode->i_mapping->nrpages == 0) nilfs_find_uncommitted_extent()
|
/linux-4.1.27/fs/jffs2/ |
H A D | dir.c | 186 inode->i_mapping->nrpages = 0; jffs2_create() 206 jffs2_dbg(1, "%s(): Created ino #%lu with mode %o, nlink %d(%d). nrpages %ld\n", jffs2_create() 208 f->inocache->pino_nlink, inode->i_mapping->nrpages); jffs2_create()
|
H A D | fs.c | 320 inode->i_mapping->nrpages = 0; jffs2_iget()
|
/linux-4.1.27/fs/xfs/ |
H A D | xfs_file.c | 320 if ((ioflags & XFS_IO_ISDIRECT) && inode->i_mapping->nrpages) { xfs_file_read_iter() 324 if (inode->i_mapping->nrpages) { xfs_file_read_iter() 689 if (unaligned_io || mapping->nrpages) xfs_file_dio_aio_write() 700 if (mapping->nrpages && iolock == XFS_IOLOCK_SHARED) { xfs_file_dio_aio_write() 713 if (mapping->nrpages) { xfs_file_dio_aio_write() 747 if (mapping->nrpages) { xfs_file_dio_aio_write()
|
H A D | xfs_bmap_util.c | 809 VFS_I(ip)->i_mapping->nrpages == 0 && xfs_can_free_eofblocks() 1661 if (VFS_I(ip)->i_mapping->nrpages) xfs_swap_extent_flush()
|
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/ |
H A D | cl_io.c | 1596 * Initialize synchronous io wait anchor, for transfer of \a nrpages pages. 1598 void cl_sync_io_init(struct cl_sync_io *anchor, int nrpages) cl_sync_io_init() argument 1601 atomic_set(&anchor->csi_sync_nr, nrpages); cl_sync_io_init() 1602 atomic_set(&anchor->csi_barrier, nrpages > 0); cl_sync_io_init()
|
/linux-4.1.27/fs/exofs/ |
H A D | inode.c | 798 start + mapping->nrpages : exofs_writepages() 804 expected_pages = mapping->nrpages; exofs_writepages() 810 "nrpages=%lu start=0x%lx end=0x%lx expected_pages=%ld\n", exofs_writepages() 812 mapping->nrpages, start, end, expected_pages); exofs_writepages()
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
H A D | lproc_llite.c | 385 int nrpages = 0; ll_max_cached_mb_seq_write() local 436 nrpages += ov - nv; ll_max_cached_mb_seq_write() 466 atomic_add(nrpages, &cache->ccc_lru_left); ll_max_cached_mb_seq_write()
|
H A D | llite_lib.c | 1803 if (inode->i_data.nrpages) { ll_delete_inode() 1806 LASSERTF(inode->i_data.nrpages == 0, ll_delete_inode() 1807 "inode=%lu/%u(%p) nrpages=%lu, see http://jira.whamcloud.com/browse/LU-118\n", ll_delete_inode() 1809 inode->i_data.nrpages); ll_delete_inode()
|
/linux-4.1.27/ipc/ |
H A D | shm.c | 763 *rss_add += pages_per_huge_page(h) * mapping->nrpages; shm_add_rss_swap() 768 *rss_add += inode->i_mapping->nrpages; shm_add_rss_swap() 772 *rss_add += inode->i_mapping->nrpages; shm_add_rss_swap()
|
/linux-4.1.27/fs/nfs/ |
H A D | inode.c | 150 if (mapping->nrpages != 0) { nfs_sync_mapping() 161 if (inode->i_mapping->nrpages == 0) nfs_set_cache_invalid() 205 if (mapping->nrpages != 0) { nfs_zap_mapping() 1041 if (mapping->nrpages != 0) { nfs_invalidate_mapping()
|
H A D | direct.c | 983 if (mapping->nrpages) { nfs_file_direct_write() 1012 if (mapping->nrpages) { nfs_file_direct_write()
|
/linux-4.1.27/fs/gfs2/ |
H A D | file.c | 660 if (mapping->nrpages) { gfs2_fsync() 680 if (mapping->nrpages) gfs2_fsync()
|
H A D | log.c | 540 if (ip->i_inode.i_mapping->nrpages == 0) gfs2_ordered_write() 559 if (ip->i_inode.i_mapping->nrpages == 0) gfs2_ordered_wait()
|
H A D | aops.c | 1080 if (mapping->nrpages) { gfs2_direct_IO()
|
H A D | glock.c | 209 GLOCK_BUG_ON(gl, mapping && mapping->nrpages); gfs2_glock_put()
|
/linux-4.1.27/fs/nfs/blocklayout/ |
H A D | blocklayout.c | 815 if (end != inode->i_mapping->nrpages) { pnfs_num_cont_bytes()
|
/linux-4.1.27/fs/ext4/ |
H A D | file.c | 142 !file->f_mapping->nrpages && pos + length <= i_size_read(inode)) { ext4_file_write_iter()
|
H A D | inode.c | 2438 if (!mapping->nrpages || !mapping_tagged(mapping, PAGECACHE_TAG_DIRTY)) ext4_writepages() 3606 if (mapping->nrpages && mapping_tagged(mapping, PAGECACHE_TAG_DIRTY)) { ext4_punch_hole()
|
/linux-4.1.27/fs/9p/ |
H A D | vfs_file.c | 425 if (inode->i_mapping && inode->i_mapping->nrpages) v9fs_file_write_iter()
|
/linux-4.1.27/fs/btrfs/ |
H A D | extent_io.c | 1617 unsigned long nrpages; lock_delalloc_pages() local 1626 nrpages = end_index - index + 1; lock_delalloc_pages() 1627 while (nrpages > 0) { lock_delalloc_pages() 1630 nrpages, ARRAY_SIZE(pages)), pages); lock_delalloc_pages() 1654 nrpages -= ret; lock_delalloc_pages()
|
H A D | inode.c | 8961 WARN_ON(inode->i_data.nrpages); btrfs_destroy_inode()
|
/linux-4.1.27/fs/ceph/ |
H A D | caps.c | 836 if (ci->i_rdcache_ref || ci->vfs_inode.i_data.nrpages) __ceph_caps_used() 1497 if (inode->i_data.nrpages == 0 && try_nonblocking_invalidate() 1606 inode->i_data.nrpages && /* have cached pages */ ceph_check_caps()
|
/linux-4.1.27/fs/cifs/ |
H A D | inode.c | 1818 if (inode->i_mapping && inode->i_mapping->nrpages != 0) { cifs_invalidate_mapping() 1968 inode->i_mapping->nrpages != 0) { cifs_getattr()
|
H A D | cifsfs.c | 796 inode->i_mapping->nrpages != 0) { cifs_llseek()
|
/linux-4.1.27/drivers/iommu/ |
H A D | intel-iommu.c | 2934 unsigned long nrpages, uint64_t dma_mask) intel_alloc_iova() 2947 iova = alloc_iova(&domain->iovad, nrpages, intel_alloc_iova() 2952 iova = alloc_iova(&domain->iovad, nrpages, IOVA_PFN(dma_mask), 1); intel_alloc_iova() 2955 nrpages, dev_name(dev)); intel_alloc_iova() 2932 intel_alloc_iova(struct device *dev, struct dmar_domain *domain, unsigned long nrpages, uint64_t dma_mask) intel_alloc_iova() argument
|
/linux-4.1.27/fs/ubifs/ |
H A D | dir.c | 110 inode->i_mapping->nrpages = 0; ubifs_new_inode()
|
/linux-4.1.27/fs/hugetlbfs/ |
H A D | inode.c | 336 BUG_ON(!lstart && mapping->nrpages); truncate_hugepages()
|
/linux-4.1.27/fs/jbd2/ |
H A D | commit.c | 200 .nr_to_write = mapping->nrpages * 2, journal_submit_inode_data_buffers()
|
/linux-4.1.27/fs/fscache/ |
H A D | page.c | 1171 if (!mapping || mapping->nrpages == 0) { __fscache_uncache_all_inode_pages()
|
/linux-4.1.27/drivers/staging/lustre/lustre/include/ |
H A D | cl_object.h | 3208 void cl_sync_io_init(struct cl_sync_io *anchor, int nrpages);
|
/linux-4.1.27/include/linux/ |
H A D | fs.h | 433 unsigned long nrpages; /* number of total pages */ member in struct:address_space
|