/linux-6.3-rc2/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 | internal.h | 488 int erofs_pcpubuf_growsize(unsigned int nrpages);
|
A D | zdata.c | 306 static struct z_erofs_pcluster *z_erofs_alloc_pcluster(unsigned int nrpages) in z_erofs_alloc_pcluster() argument 314 if (nrpages > pcs->maxpages) in z_erofs_alloc_pcluster() 320 pcl->pclusterpages = nrpages; in z_erofs_alloc_pcluster()
|
/linux-6.3-rc2/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-6.3-rc2/mm/ |
A D | early_ioremap.c | 106 unsigned int nrpages; in __early_ioremap() local 140 nrpages = size >> PAGE_SHIFT; in __early_ioremap() 141 if (WARN_ON(nrpages > NR_FIX_BTMAPS)) in __early_ioremap() 148 while (nrpages > 0) { in __early_ioremap() 155 --nrpages; in __early_ioremap() 168 unsigned int nrpages; in early_iounmap() local 197 nrpages = PAGE_ALIGN(offset + size) >> PAGE_SHIFT; in early_iounmap() 200 while (nrpages > 0) { in early_iounmap() 206 --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 | 594 long nrpages = (end - start) >> PAGE_SHIFT; in mprotect_fixup() local 629 if (!may_expand_vm(mm, newflags, nrpages) && in mprotect_fixup() 630 may_expand_vm(mm, oldflags, nrpages)) in mprotect_fixup() 634 charged = nrpages; in mprotect_fixup() 689 vm_stat_account(mm, oldflags, -nrpages); in mprotect_fixup() 690 vm_stat_account(mm, newflags, nrpages); in mprotect_fixup()
|
A D | swap_state.c | 122 address_space->nrpages += nr; in add_to_swap_cache() 163 address_space->nrpages -= nr; in __delete_from_swap_cache()
|
A D | filemap.c | 147 mapping->nrpages -= nr; in page_cache_delete() 317 mapping->nrpages -= total_pages; in page_cache_delete_batch() 628 return mapping->nrpages; in mapping_needs_writeback() 904 mapping->nrpages += nr; in __filemap_add_folio() 3869 if (written > 0 && mapping->nrpages && in generic_file_direct_write()
|
/linux-6.3-rc2/arch/x86/mm/ |
A D | ioremap.c | 47 unsigned long nrpages = size >> PAGE_SHIFT; in ioremap_change_attr() local 53 err = _set_memory_uc(vaddr, nrpages); in ioremap_change_attr() 56 err = _set_memory_wc(vaddr, nrpages); in ioremap_change_attr() 59 err = _set_memory_wt(vaddr, nrpages); in ioremap_change_attr() 62 err = _set_memory_wb(vaddr, nrpages); in ioremap_change_attr()
|
/linux-6.3-rc2/fs/nilfs2/ |
A D | page.c | 328 smap->nrpages--; in nilfs_copy_back_pages() 339 dmap->nrpages++; in nilfs_copy_back_pages() 490 if (inode->i_mapping->nrpages == 0) in nilfs_find_uncommitted_extent()
|
/linux-6.3-rc2/fs/f2fs/ |
A D | debug.c | 161 si->node_pages = NODE_MAPPING(sbi)->nrpages; in update_general_status() 163 si->meta_pages = META_MAPPING(sbi)->nrpages; in update_general_status() 166 si->compress_pages = COMPRESS_MAPPING(sbi)->nrpages; in update_general_status() 321 unsigned long npages = NODE_MAPPING(sbi)->nrpages; in update_mem_info() 326 unsigned long npages = META_MAPPING(sbi)->nrpages; in update_mem_info() 332 unsigned long npages = COMPRESS_MAPPING(sbi)->nrpages; in update_mem_info()
|
A D | node.c | 111 (COMPRESS_MAPPING(sbi)->nrpages < in f2fs_available_free_memory() 2824 int i, idx, last_offset, nrpages; in f2fs_restore_node_summary() local 2831 for (i = 0; i < last_offset; i += nrpages, addr += nrpages) { in f2fs_restore_node_summary() 2832 nrpages = bio_max_segs(last_offset - i); in f2fs_restore_node_summary() 2835 f2fs_ra_meta_pages(sbi, addr, nrpages, META_POR, true); in f2fs_restore_node_summary() 2837 for (idx = addr; idx < addr + nrpages; idx++) { in f2fs_restore_node_summary() 2852 addr + nrpages); in f2fs_restore_node_summary()
|
/linux-6.3-rc2/fs/gfs2/ |
A D | glops.c | 538 unsigned long nrpages; in inode_go_dump() local 544 nrpages = inode->i_data.nrpages; in inode_go_dump() 553 (unsigned long long)i_size_read(inode), nrpages); in inode_go_dump()
|
A D | log.c | 734 if (ip->i_inode.i_mapping->nrpages == 0) { in gfs2_ordered_write() 755 if (ip->i_inode.i_mapping->nrpages == 0) in gfs2_ordered_wait()
|
A D | glock.c | 2355 unsigned long nrpages = 0; in gfs2_dump_glock() local 2360 nrpages = mapping->nrpages; in gfs2_dump_glock() 2379 (int)gl->gl_lockref.count, gl->gl_hold_time, nrpages); in gfs2_dump_glock()
|
/linux-6.3-rc2/block/ |
A D | bdev.c | 84 if (mapping->nrpages) { in invalidate_bdev() 445 ret += inode->i_mapping->nrpages; in nr_blockdev_pages() 955 mapping->nrpages == 0) { in sync_bdevs()
|
/linux-6.3-rc2/fs/nfs/ |
A D | inode.c | 148 if (mapping->nrpages != 0) { in nfs_sync_mapping() 211 if (inode->i_mapping->nrpages == 0) in nfs_set_cache_invalid() 256 if (mapping->nrpages != 0) { in nfs_zap_mapping() 1018 if (inode->i_mapping->nrpages == 0) in nfs_close_context() 1294 if (mapping->nrpages != 0) { in nfs_invalidate_mapping()
|
/linux-6.3-rc2/fs/orangefs/ |
A D | file.c | 400 #define mapping_nrpages(idata) ((idata)->nrpages)
|
/linux-6.3-rc2/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-6.3-rc2/fs/ |
A D | direct-io.c | 290 dio->inode->i_mapping->nrpages) { in dio_complete() 358 dio->inode->i_mapping->nrpages); in dio_bio_end_aio()
|
A D | dax.c | 640 mapping->nrpages -= PG_PMD_NR; in grab_mapping_entry() 656 mapping->nrpages += 1UL << order; in grab_mapping_entry() 776 mapping->nrpages -= 1UL << dax_entry_order(entry); in __dax_invalidate_entry()
|
/linux-6.3-rc2/ipc/ |
A D | shm.c | 947 *rss_add += pages_per_huge_page(h) * mapping->nrpages; in shm_add_rss_swap() 953 *rss_add += inode->i_mapping->nrpages; in shm_add_rss_swap() 957 *rss_add += inode->i_mapping->nrpages; in shm_add_rss_swap()
|
/linux-6.3-rc2/fs/iomap/ |
A D | direct-io.c | 113 (dio->flags & IOMAP_DIO_WRITE) && inode->i_mapping->nrpages) { in iomap_dio_complete()
|
/linux-6.3-rc2/fs/exfat/ |
A D | inode.c | 562 inode->i_mapping->nrpages = 0; in exfat_fill_inode()
|