Home
last modified time | relevance | path

Searched refs:nrpages (Results 1 – 53 of 53) sorted by relevance

/linux-4.4.14/arch/sh/mm/
Dioremap_fixed.c51 unsigned int nrpages; in ioremap_fixed() local
78 nrpages = size >> PAGE_SHIFT; in ioremap_fixed()
79 if (nrpages > FIX_N_IOREMAPS) in ioremap_fixed()
87 while (nrpages > 0) { in ioremap_fixed()
92 --nrpages; in ioremap_fixed()
103 unsigned int nrpages; in iounmap_fixed() local
121 nrpages = map->size >> PAGE_SHIFT; in iounmap_fixed()
123 idx = FIX_IOREMAP_BEGIN + slot + nrpages - 1; in iounmap_fixed()
124 while (nrpages > 0) { in iounmap_fixed()
127 --nrpages; in iounmap_fixed()
/linux-4.4.14/mm/
Dearly_ioremap.c102 unsigned int nrpages; in __early_ioremap() local
136 nrpages = size >> PAGE_SHIFT; in __early_ioremap()
137 if (WARN_ON(nrpages > NR_FIX_BTMAPS)) in __early_ioremap()
144 while (nrpages > 0) { in __early_ioremap()
151 --nrpages; in __early_ioremap()
164 unsigned int nrpages; in early_iounmap() local
193 nrpages = PAGE_ALIGN(offset + size) >> PAGE_SHIFT; in early_iounmap()
196 while (nrpages > 0) { in early_iounmap()
202 --nrpages; in early_iounmap()
Dfadvise.c37 unsigned long nrpages; in SYSCALL_DEFINE4() local
104 nrpages = end_index - start_index + 1; in SYSCALL_DEFINE4()
105 if (!nrpages) in SYSCALL_DEFINE4()
106 nrpages = ~0UL; in SYSCALL_DEFINE4()
113 nrpages); in SYSCALL_DEFINE4()
Dtruncate.c231 if (mapping->nrpages == 0 && mapping->nrshadows == 0) in truncate_inode_pages_range()
406 unsigned long nrpages; in truncate_inode_pages_final() local
422 nrpages = mapping->nrpages; in truncate_inode_pages_final()
426 if (nrpages || nrshadows) { in truncate_inode_pages_final()
Dmprotect.c263 long nrpages = (end - start) >> PAGE_SHIFT; in mprotect_fixup() local
283 charged = nrpages; in mprotect_fixup()
337 vm_stat_account(mm, oldflags, vma->vm_file, -nrpages); in mprotect_fixup()
338 vm_stat_account(mm, newflags, vma->vm_file, nrpages); in mprotect_fixup()
Dswap_state.c58 ret += swapper_spaces[i].nrpages; in total_swapcache_pages()
97 address_space->nrpages++; in __add_to_swap_cache()
149 address_space->nrpages--; in __delete_from_swap_cache()
Dfilemap.c135 mapping->nrpages--; in page_cache_tree_delete()
448 if (mapping->nrpages) { in filemap_write_and_wait()
484 if (mapping->nrpages) { in filemap_write_and_wait_range()
543 mapping->nrpages++; in replace_page_cache_page()
589 mapping->nrpages++; in page_cache_tree_insert()
2422 if (mapping->nrpages) { in generic_file_direct_write()
2447 if (mapping->nrpages) { in generic_file_direct_write()
Dshmem.c241 freed = info->alloced - info->swapped - inode->i_mapping->nrpages; in shmem_recalc_inode()
314 mapping->nrpages++; in shmem_add_to_page_cache()
337 mapping->nrpages--; in shmem_delete_from_page_cache()
553 if (info->alloced - info->swapped != inode->i_mapping->nrpages) { in shmem_getattr()
Dmmap.c2384 long nrpages = vma_pages(vma); in remove_vma_list() local
2387 nr_accounted += nrpages; in remove_vma_list()
2388 vm_stat_account(mm, vma->vm_flags, vma->vm_file, -nrpages); in remove_vma_list()
/linux-4.4.14/arch/x86/mm/
Dioremap.c34 unsigned long nrpages = size >> PAGE_SHIFT; in ioremap_change_attr() local
40 err = _set_memory_uc(vaddr, nrpages); in ioremap_change_attr()
43 err = _set_memory_wc(vaddr, nrpages); in ioremap_change_attr()
46 err = _set_memory_wt(vaddr, nrpages); in ioremap_change_attr()
49 err = _set_memory_wb(vaddr, nrpages); in ioremap_change_attr()
/linux-4.4.14/drivers/staging/lustre/lustre/mgc/
Dmgc_request.c1294 int nrpages; in mgc_process_recover_log() local
1307 nrpages = CONFIG_READ_NRPAGES; in mgc_process_recover_log()
1309 nrpages = CONFIG_READ_NRPAGES_INIT; in mgc_process_recover_log()
1311 pages = kcalloc(nrpages, sizeof(*pages), GFP_KERNEL); in mgc_process_recover_log()
1317 for (i = 0; i < nrpages; i++) { in mgc_process_recover_log()
1351 body->mcb_units = nrpages; in mgc_process_recover_log()
1354 desc = ptlrpc_prep_bulk_imp(req, nrpages, 1, BULK_PUT_SINK, in mgc_process_recover_log()
1361 for (i = 0; i < nrpages; i++) in mgc_process_recover_log()
1389 if (ealen > nrpages << PAGE_CACHE_SHIFT) { in mgc_process_recover_log()
1410 for (i = 0; i < nrpages && ealen > 0; i++) { in mgc_process_recover_log()
[all …]
/linux-4.4.14/fs/
Ddrop_caches.c24 (inode->i_mapping->nrpages == 0)) { in drop_pagecache_sb()
Dblock_dev.c78 if (mapping->nrpages == 0 && mapping->nrshadows == 0) in kill_bdev()
91 if (mapping->nrpages == 0) in invalidate_bdev()
679 ret += bdev->bd_inode->i_mapping->nrpages; in nr_blockdev_pages()
1812 mapping->nrpages == 0) { in iterate_bdevs()
Dinode.c497 BUG_ON(inode->i_data.nrpages); in clear_inode()
723 if (inode_has_buffers(inode) || inode->i_data.nrpages) { in inode_lru_isolate()
Dbuffer.c3415 unsigned long nrpages; in buffer_init() local
3426 nrpages = (nr_free_buffer_pages() * 10) / 100; in buffer_init()
3427 max_buffer_heads = nrpages * (PAGE_SIZE / sizeof(struct buffer_head)); in buffer_init()
Dlibfs.c28 stat->blocks = inode->i_mapping->nrpages << (PAGE_CACHE_SHIFT - 9); in simple_getattr()
Dfs-writeback.c2181 (mapping->nrpages == 0)) { in wait_sb_inodes()
/linux-4.4.14/fs/f2fs/
Ddebug.c64 si->node_pages = NODE_MAPPING(sbi)->nrpages; in update_general_status()
65 si->meta_pages = META_MAPPING(sbi)->nrpages; in update_general_status()
200 npages = NODE_MAPPING(sbi)->nrpages; in update_mem_info()
202 npages = META_MAPPING(sbi)->nrpages; in update_mem_info()
Dnode.c1800 int i, idx, last_offset, nrpages; in restore_node_summary() local
1807 for (i = 0; i < last_offset; i += nrpages, addr += nrpages) { in restore_node_summary()
1808 nrpages = min(last_offset - i, bio_blocks); in restore_node_summary()
1811 ra_meta_pages(sbi, addr, nrpages, META_POR, true); in restore_node_summary()
1813 for (idx = addr; idx < addr + nrpages; idx++) { in restore_node_summary()
1825 addr + nrpages); in restore_node_summary()
Dfile.c917 pgoff_t nrpages = (i_size_read(inode) + PAGE_SIZE - 1) / PAGE_SIZE; in f2fs_do_collapse() local
920 for (; end < nrpages; start++, end++) { in f2fs_do_collapse()
1092 pgoff_t pg_start, pg_end, delta, nrpages, idx; in f2fs_insert_range() local
1129 nrpages = (i_size_read(inode) + PAGE_SIZE - 1) / PAGE_SIZE; in f2fs_insert_range()
1131 for (idx = nrpages - 1; idx >= pg_start && idx != -1; idx--) { in f2fs_insert_range()
Dcheckpoint.c143 int ra_meta_pages(struct f2fs_sb_info *sbi, block_t start, int nrpages, in ra_meta_pages() argument
159 for (; nrpages-- > 0; blkno++) { in ra_meta_pages()
Dsegment.c2128 int nrpages = MAX_BIO_BLOCKS(sbi); in build_sit_entries() local
2131 readed = ra_meta_pages(sbi, start_blk, nrpages, META_SIT, true); in build_sit_entries()
/linux-4.4.14/fs/nilfs2/
Dpage.c345 smap->nrpages--; in nilfs_copy_back_pages()
356 dmap->nrpages++; in nilfs_copy_back_pages()
523 if (inode->i_mapping->nrpages == 0) in nilfs_find_uncommitted_extent()
/linux-4.4.14/fs/xfs/
Dxfs_file.c341 if ((ioflags & XFS_IO_ISDIRECT) && inode->i_mapping->nrpages) { in xfs_file_read_iter()
356 if (inode->i_mapping->nrpages) { in xfs_file_read_iter()
735 if (unaligned_io || mapping->nrpages) in xfs_file_dio_aio_write()
746 if (mapping->nrpages && iolock == XFS_IOLOCK_SHARED) { in xfs_file_dio_aio_write()
762 if (mapping->nrpages) { in xfs_file_dio_aio_write()
793 if (mapping->nrpages) { in xfs_file_dio_aio_write()
Dxfs_bmap_util.c835 VFS_I(ip)->i_mapping->nrpages == 0 && in xfs_can_free_eofblocks()
1701 if (VFS_I(ip)->i_mapping->nrpages) in xfs_swap_extent_flush()
/linux-4.4.14/fs/nfs/
Dinode.c150 if (mapping->nrpages != 0) { in nfs_sync_mapping()
161 if (inode->i_mapping->nrpages == 0) in nfs_set_cache_invalid()
205 if (mapping->nrpages != 0) { in nfs_zap_mapping()
783 if (inode->i_mapping->nrpages == 0) in nfs_close_context()
1055 if (mapping->nrpages != 0) { in nfs_invalidate_mapping()
Ddirect.c986 if (mapping->nrpages) { in nfs_file_direct_write()
1015 if (mapping->nrpages) { in nfs_file_direct_write()
/linux-4.4.14/ipc/
Dshm.c763 *rss_add += pages_per_huge_page(h) * mapping->nrpages; in shm_add_rss_swap()
768 *rss_add += inode->i_mapping->nrpages; in shm_add_rss_swap()
772 *rss_add += inode->i_mapping->nrpages; in shm_add_rss_swap()
/linux-4.4.14/fs/gfs2/
Dlog.c540 if (ip->i_inode.i_mapping->nrpages == 0) in gfs2_ordered_write()
559 if (ip->i_inode.i_mapping->nrpages == 0) in gfs2_ordered_wait()
Dfile.c660 if (mapping->nrpages) { in gfs2_fsync()
680 if (mapping->nrpages) in gfs2_fsync()
Daops.c1084 if (mapping->nrpages) { in gfs2_direct_IO()
Dglock.c175 GLOCK_BUG_ON(gl, mapping && mapping->nrpages); in gfs2_glock_put()
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
Dcl_io.c1531 void cl_sync_io_init(struct cl_sync_io *anchor, int nrpages) in cl_sync_io_init() argument
1534 atomic_set(&anchor->csi_sync_nr, nrpages); in cl_sync_io_init()
1535 atomic_set(&anchor->csi_barrier, nrpages > 0); in cl_sync_io_init()
/linux-4.4.14/fs/exofs/
Dinode.c795 start + mapping->nrpages : in exofs_writepages()
801 expected_pages = mapping->nrpages; in exofs_writepages()
809 mapping->nrpages, start, end, expected_pages); in exofs_writepages()
/linux-4.4.14/fs/jffs2/
Ddir.c186 inode->i_mapping->nrpages = 0; in jffs2_create()
208 f->inocache->pino_nlink, inode->i_mapping->nrpages); in jffs2_create()
Dfs.c318 inode->i_mapping->nrpages = 0; in jffs2_iget()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dlproc_llite.c397 int nrpages = 0; in ll_max_cached_mb_seq_write() local
448 nrpages += ov - nv; in ll_max_cached_mb_seq_write()
478 atomic_add(nrpages, &cache->ccc_lru_left); in ll_max_cached_mb_seq_write()
Dllite_lib.c1701 if (inode->i_data.nrpages) { in ll_delete_inode()
1704 LASSERTF(inode->i_data.nrpages == 0, in ll_delete_inode()
1707 inode->i_data.nrpages); in ll_delete_inode()
/linux-4.4.14/fs/9p/
Dvfs_file.c426 if (inode->i_mapping && inode->i_mapping->nrpages) in v9fs_file_write_iter()
/linux-4.4.14/drivers/iommu/
Dintel-iommu.c3304 unsigned long nrpages, uint64_t dma_mask) in intel_alloc_iova() argument
3311 nrpages = __roundup_pow_of_two(nrpages); in intel_alloc_iova()
3319 iova = alloc_iova(&domain->iovad, nrpages, in intel_alloc_iova()
3324 iova = alloc_iova(&domain->iovad, nrpages, IOVA_PFN(dma_mask), 1); in intel_alloc_iova()
3327 nrpages, dev_name(dev)); in intel_alloc_iova()
/linux-4.4.14/fs/ext4/
Dfile.c143 !file->f_mapping->nrpages && pos + length <= i_size_read(inode)) { in ext4_file_write_iter()
Dinode.c2470 if (!mapping->nrpages || !mapping_tagged(mapping, PAGECACHE_TAG_DIRTY)) in ext4_writepages()
3648 if (mapping->nrpages && mapping_tagged(mapping, PAGECACHE_TAG_DIRTY)) { in ext4_punch_hole()
/linux-4.4.14/fs/nfs/blocklayout/
Dblocklayout.c810 if (end != inode->i_mapping->nrpages) { in pnfs_num_cont_bytes()
/linux-4.4.14/fs/fscache/
Dpage.c1171 if (!mapping || mapping->nrpages == 0) { in __fscache_uncache_all_inode_pages()
/linux-4.4.14/fs/jbd2/
Dcommit.c198 .nr_to_write = mapping->nrpages * 2, in journal_submit_inode_data_buffers()
/linux-4.4.14/fs/cifs/
Dcifsfs.c803 inode->i_mapping->nrpages != 0) { in cifs_llseek()
Dinode.c1818 if (inode->i_mapping && inode->i_mapping->nrpages != 0) {
1968 inode->i_mapping->nrpages != 0) {
/linux-4.4.14/fs/btrfs/
Dextent_io.c1685 unsigned long nrpages; in lock_delalloc_pages() local
1694 nrpages = end_index - index + 1; in lock_delalloc_pages()
1695 while (nrpages > 0) { in lock_delalloc_pages()
1698 nrpages, ARRAY_SIZE(pages)), pages); in lock_delalloc_pages()
1722 nrpages -= ret; in lock_delalloc_pages()
Dinode.c9101 WARN_ON(inode->i_data.nrpages); in btrfs_destroy_inode()
/linux-4.4.14/fs/ubifs/
Ddir.c110 inode->i_mapping->nrpages = 0; in ubifs_new_inode()
/linux-4.4.14/fs/ceph/
Dcaps.c838 ci->vfs_inode.i_data.nrpages)) in __ceph_caps_used()
1546 if (inode->i_data.nrpages == 0 && in try_nonblocking_invalidate()
1657 inode->i_data.nrpages && /* have cached pages */ in ceph_check_caps()
/linux-4.4.14/drivers/staging/lustre/lustre/include/
Dcl_object.h3173 void cl_sync_io_init(struct cl_sync_io *anchor, int nrpages);
/linux-4.4.14/include/linux/
Dfs.h434 unsigned long nrpages; /* number of total pages */ member