/linux/fs/erofs/ |
A D | pcpubuf.c | 16 unsigned int nrpages; member 28 if (requiredpages > pcb->nrpages) { in erofs_get_pcpubuf() 48 int erofs_pcpubuf_growsize(unsigned int nrpages) in erofs_pcpubuf_growsize() argument 56 delta = nrpages - pcb_nrpages; in erofs_pcpubuf_growsize() 67 pages = kmalloc_array(nrpages, sizeof(*pages), GFP_KERNEL); in erofs_pcpubuf_growsize() 73 for (i = 0; i < nrpages; ++i) { in erofs_pcpubuf_growsize() 81 ptr = vmap(pages, nrpages, VM_MAP, PAGE_KERNEL); in erofs_pcpubuf_growsize() 92 i = pcb->nrpages; in erofs_pcpubuf_growsize() 93 pcb->nrpages = nrpages; in erofs_pcpubuf_growsize() 110 pcb_nrpages = nrpages; in erofs_pcpubuf_growsize() [all …]
|
A D | zdata.c | 63 static struct z_erofs_pcluster *z_erofs_alloc_pcluster(unsigned int nrpages) in z_erofs_alloc_pcluster() argument 71 if (nrpages > pcs->maxpages) in z_erofs_alloc_pcluster() 77 pcl->pclusterpages = nrpages; in z_erofs_alloc_pcluster()
|
A D | internal.h | 497 int erofs_pcpubuf_growsize(unsigned int nrpages);
|
/linux/arch/sh/mm/ |
A D | ioremap_fixed.c | 52 unsigned int nrpages; in ioremap_fixed() local 79 nrpages = size >> PAGE_SHIFT; in ioremap_fixed() 80 if (nrpages > FIX_N_IOREMAPS) in ioremap_fixed() 88 while (nrpages > 0) { in ioremap_fixed() 93 --nrpages; in ioremap_fixed() 104 unsigned int nrpages; in iounmap_fixed() local 122 nrpages = map->size >> PAGE_SHIFT; in iounmap_fixed() 124 idx = FIX_IOREMAP_BEGIN + slot + nrpages - 1; in iounmap_fixed() 125 while (nrpages > 0) { in iounmap_fixed() 128 --nrpages; in iounmap_fixed()
|
/linux/mm/ |
A D | early_ioremap.c | 105 unsigned int nrpages; in __early_ioremap() local 139 nrpages = size >> PAGE_SHIFT; in __early_ioremap() 140 if (WARN_ON(nrpages > NR_FIX_BTMAPS)) in __early_ioremap() 147 while (nrpages > 0) { in __early_ioremap() 154 --nrpages; in __early_ioremap() 167 unsigned int nrpages; in early_iounmap() local 196 nrpages = PAGE_ALIGN(offset + size) >> PAGE_SHIFT; in early_iounmap() 199 while (nrpages > 0) { in early_iounmap() 205 --nrpages; in early_iounmap()
|
A D | fadvise.c | 40 unsigned long nrpages; in generic_fadvise() local 103 nrpages = end_index - start_index + 1; in generic_fadvise() 104 if (!nrpages) in generic_fadvise() 105 nrpages = ~0UL; in generic_fadvise() 107 force_page_cache_readahead(mapping, file, start_index, nrpages); in generic_fadvise()
|
A D | mprotect.c | 414 long nrpages = (end - start) >> PAGE_SHIFT; in mprotect_fixup() local 449 if (!may_expand_vm(mm, newflags, nrpages) && in mprotect_fixup() 450 may_expand_vm(mm, oldflags, nrpages)) in mprotect_fixup() 454 charged = nrpages; in mprotect_fixup() 509 vm_stat_account(mm, oldflags, -nrpages); in mprotect_fixup() 510 vm_stat_account(mm, newflags, nrpages); in mprotect_fixup()
|
A D | swap_state.c | 132 address_space->nrpages += nr; in add_to_swap_cache() 171 address_space->nrpages -= nr; in __delete_from_swap_cache()
|
A D | filemap.c | 146 mapping->nrpages -= nr; in page_cache_delete() 335 mapping->nrpages -= total_pages; in page_cache_delete_batch() 646 return mapping->nrpages; in mapping_needs_writeback() 946 mapping->nrpages++; in __filemap_add_folio() 3697 if (written > 0 && mapping->nrpages && in generic_file_direct_write()
|
A D | shmem.c | 363 freed = info->alloced - info->swapped - inode->i_mapping->nrpages; in shmem_recalc_inode() 380 inode->i_mapping->nrpages += pages; in shmem_charge() 742 mapping->nrpages += nr; in shmem_add_to_page_cache() 774 mapping->nrpages--; in shmem_delete_from_page_cache() 1068 if (info->alloced - info->swapped != inode->i_mapping->nrpages) { in shmem_getattr()
|
/linux/arch/x86/mm/ |
A D | ioremap.c | 46 unsigned long nrpages = size >> PAGE_SHIFT; in ioremap_change_attr() local 52 err = _set_memory_uc(vaddr, nrpages); in ioremap_change_attr() 55 err = _set_memory_wc(vaddr, nrpages); in ioremap_change_attr() 58 err = _set_memory_wt(vaddr, nrpages); in ioremap_change_attr() 61 err = _set_memory_wb(vaddr, nrpages); in ioremap_change_attr()
|
/linux/fs/f2fs/ |
A D | debug.c | 152 si->node_pages = NODE_MAPPING(sbi)->nrpages; in update_general_status() 154 si->meta_pages = META_MAPPING(sbi)->nrpages; in update_general_status() 157 si->compress_pages = COMPRESS_MAPPING(sbi)->nrpages; in update_general_status() 309 unsigned npages = NODE_MAPPING(sbi)->nrpages; in update_mem_info() 314 unsigned npages = META_MAPPING(sbi)->nrpages; in update_mem_info() 320 unsigned npages = COMPRESS_MAPPING(sbi)->nrpages; in update_mem_info()
|
A D | node.c | 110 (COMPRESS_MAPPING(sbi)->nrpages < in f2fs_available_free_memory() 2813 int i, idx, last_offset, nrpages; in f2fs_restore_node_summary() local 2820 for (i = 0; i < last_offset; i += nrpages, addr += nrpages) { in f2fs_restore_node_summary() 2821 nrpages = bio_max_segs(last_offset - i); in f2fs_restore_node_summary() 2824 f2fs_ra_meta_pages(sbi, addr, nrpages, META_POR, true); in f2fs_restore_node_summary() 2826 for (idx = addr; idx < addr + nrpages; idx++) { in f2fs_restore_node_summary() 2841 addr + nrpages); in f2fs_restore_node_summary()
|
/linux/fs/gfs2/ |
A D | glops.c | 534 unsigned long nrpages; in inode_go_dump() local 540 nrpages = inode->i_data.nrpages; in inode_go_dump() 549 (unsigned long long)i_size_read(inode), nrpages); in inode_go_dump()
|
A D | glock.c | 2398 unsigned long nrpages = 0; in gfs2_dump_glock() local 2403 nrpages = mapping->nrpages; in gfs2_dump_glock() 2422 (int)gl->gl_lockref.count, gl->gl_hold_time, nrpages); in gfs2_dump_glock()
|
A D | log.c | 726 if (ip->i_inode.i_mapping->nrpages == 0) { in gfs2_ordered_write() 747 if (ip->i_inode.i_mapping->nrpages == 0) in gfs2_ordered_wait()
|
/linux/fs/nilfs2/ |
A D | page.c | 327 smap->nrpages--; in nilfs_copy_back_pages() 338 dmap->nrpages++; in nilfs_copy_back_pages() 501 if (inode->i_mapping->nrpages == 0) in nilfs_find_uncommitted_extent()
|
/linux/block/ |
A D | bdev.c | 86 if (mapping->nrpages) { in invalidate_bdev() 522 ret += inode->i_mapping->nrpages; in nr_blockdev_pages() 1037 mapping->nrpages == 0) { in sync_bdevs()
|
/linux/fs/nfs/ |
A D | inode.c | 153 if (mapping->nrpages != 0) { in nfs_sync_mapping() 217 if (inode->i_mapping->nrpages == 0) in nfs_set_cache_invalid() 264 if (mapping->nrpages != 0) { in nfs_zap_mapping() 1017 if (inode->i_mapping->nrpages == 0) in nfs_close_context() 1292 if (mapping->nrpages != 0) { in nfs_invalidate_mapping()
|
/linux/fs/ |
A D | dax.c | 540 mapping->nrpages -= PG_PMD_NR; in grab_mapping_entry() 556 mapping->nrpages += 1UL << order; in grab_mapping_entry() 676 mapping->nrpages -= 1UL << dax_entry_order(entry); in __dax_invalidate_entry()
|
A D | direct-io.c | 290 dio->inode->i_mapping->nrpages) { in dio_complete() 357 dio->inode->i_mapping->nrpages); in dio_bio_end_aio()
|
/linux/drivers/block/ |
A D | loop.c | 1266 if (size_changed && lo->lo_device->bd_inode->i_mapping->nrpages) { in loop_set_status() 1271 lo->lo_device->bd_inode->i_mapping->nrpages); in loop_set_status() 1487 if (lo->lo_device->bd_inode->i_mapping->nrpages) { in loop_set_block_size() 1491 lo->lo_device->bd_inode->i_mapping->nrpages); in loop_set_block_size()
|
/linux/fs/jffs2/ |
A D | dir.c | 191 inode->i_mapping->nrpages = 0; in jffs2_create() 213 f->inocache->pino_nlink, inode->i_mapping->nrpages); in jffs2_create()
|
/linux/fs/orangefs/ |
A D | file.c | 401 #define mapping_nrpages(idata) ((idata)->nrpages)
|
/linux/ipc/ |
A D | shm.c | 931 *rss_add += pages_per_huge_page(h) * mapping->nrpages; in shm_add_rss_swap() 937 *rss_add += inode->i_mapping->nrpages; in shm_add_rss_swap() 941 *rss_add += inode->i_mapping->nrpages; in shm_add_rss_swap()
|