/openbmc/linux/fs/erofs/ |
H 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 …]
|
H A D | internal.h | 468 int erofs_pcpubuf_growsize(unsigned int nrpages);
|
H A D | zdata.c | 301 static struct z_erofs_pcluster *z_erofs_alloc_pcluster(unsigned int nrpages) in z_erofs_alloc_pcluster() argument 309 if (nrpages > pcs->maxpages) in z_erofs_alloc_pcluster() 315 pcl->pclusterpages = nrpages; in z_erofs_alloc_pcluster()
|
/openbmc/linux/arch/sh/mm/ |
H 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()
|
/openbmc/linux/mm/ |
H A D | early_ioremap.c | 104 unsigned int nrpages; in __early_ioremap() local 138 nrpages = size >> PAGE_SHIFT; in __early_ioremap() 139 if (WARN_ON(nrpages > NR_FIX_BTMAPS)) in __early_ioremap() 146 while (nrpages > 0) { in __early_ioremap() 153 --nrpages; in __early_ioremap() 166 unsigned int nrpages; in early_iounmap() local 195 nrpages = PAGE_ALIGN(offset + size) >> PAGE_SHIFT; in early_iounmap() 198 while (nrpages > 0) { in early_iounmap() 204 --nrpages; in early_iounmap()
|
H A D | fadvise.c | 39 unsigned long nrpages; in generic_fadvise() local 102 nrpages = end_index - start_index + 1; in generic_fadvise() 103 if (!nrpages) in generic_fadvise() 104 nrpages = ~0UL; in generic_fadvise() 106 force_page_cache_readahead(mapping, file, start_index, nrpages); in generic_fadvise()
|
H A D | mprotect.c | 581 long nrpages = (end - start) >> PAGE_SHIFT; in mprotect_fixup() local 616 if (!may_expand_vm(mm, newflags, nrpages) && in mprotect_fixup() 617 may_expand_vm(mm, oldflags, nrpages)) in mprotect_fixup() 621 charged = nrpages; in mprotect_fixup() 677 vm_stat_account(mm, oldflags, -nrpages); in mprotect_fixup() 678 vm_stat_account(mm, newflags, nrpages); in mprotect_fixup()
|
H A D | swap_state.c | 120 address_space->nrpages += nr; in add_to_swap_cache() 161 address_space->nrpages -= nr; in __delete_from_swap_cache()
|
H 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() 917 mapping->nrpages += nr; in __filemap_add_folio() 3904 if (mapping->nrpages && in kiocb_invalidate_post_direct_write()
|
/openbmc/linux/arch/x86/mm/ |
H 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()
|
/openbmc/linux/fs/f2fs/ |
H 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() 324 unsigned long npages = NODE_MAPPING(sbi)->nrpages; in update_mem_info() 329 unsigned long npages = META_MAPPING(sbi)->nrpages; in update_mem_info() 335 unsigned long npages = COMPRESS_MAPPING(sbi)->nrpages; in update_mem_info()
|
H A D | node.c | 111 (COMPRESS_MAPPING(sbi)->nrpages < in f2fs_available_free_memory() 2864 int i, idx, last_offset, nrpages; in f2fs_restore_node_summary() local 2871 for (i = 0; i < last_offset; i += nrpages, addr += nrpages) { in f2fs_restore_node_summary() 2872 nrpages = bio_max_segs(last_offset - i); in f2fs_restore_node_summary() 2875 f2fs_ra_meta_pages(sbi, addr, nrpages, META_POR, true); in f2fs_restore_node_summary() 2877 for (idx = addr; idx < addr + nrpages; idx++) { in f2fs_restore_node_summary() 2892 addr + nrpages); in f2fs_restore_node_summary()
|
/openbmc/linux/fs/nilfs2/ |
H A D | page.c | 329 smap->nrpages--; in nilfs_copy_back_pages() 340 dmap->nrpages++; in nilfs_copy_back_pages() 501 if (inode->i_mapping->nrpages == 0) in nilfs_find_uncommitted_extent()
|
/openbmc/linux/block/ |
H A D | bdev.c | 84 if (mapping->nrpages) { in invalidate_bdev() 443 ret += inode->i_mapping->nrpages; in nr_blockdev_pages() 1040 mapping->nrpages == 0) { in sync_bdevs()
|
/openbmc/linux/fs/nfs/ |
H A D | inode.c | 148 if (mapping->nrpages != 0) { in nfs_sync_mapping() 210 if (inode->i_mapping->nrpages == 0) in nfs_set_cache_invalid() 216 if (inode->i_mapping->nrpages == 0 || in nfs_set_cache_invalid() 260 if (mapping->nrpages != 0) { in nfs_zap_mapping() 1021 if (inode->i_mapping->nrpages == 0) in nfs_close_context() 1297 if (mapping->nrpages != 0) { in nfs_invalidate_mapping()
|
/openbmc/linux/fs/jffs2/ |
H A D | dir.c | 191 inode->i_mapping->nrpages = 0; in jffs2_create() 214 f->inocache->pino_nlink, inode->i_mapping->nrpages); in jffs2_create()
|
/openbmc/linux/fs/orangefs/ |
H A D | file.c | 420 #define mapping_nrpages(idata) ((idata)->nrpages)
|
/openbmc/linux/ipc/ |
H 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()
|
/openbmc/linux/fs/gfs2/ |
H A D | glock.c | 2392 unsigned long nrpages = 0; in gfs2_dump_glock() local 2397 nrpages = mapping->nrpages; in gfs2_dump_glock() 2416 (int)gl->gl_lockref.count, gl->gl_hold_time, nrpages); in gfs2_dump_glock()
|
H 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()
|
H A D | file.c | 749 if (mapping->nrpages) { in gfs2_fsync() 771 if (mapping->nrpages) in gfs2_fsync()
|
/openbmc/linux/fs/ |
H A D | dax.c | 626 mapping->nrpages -= PG_PMD_NR; in grab_mapping_entry() 642 mapping->nrpages += 1UL << order; in grab_mapping_entry() 762 mapping->nrpages -= 1UL << dax_entry_order(entry); in __dax_invalidate_entry()
|
H A D | buffer.c | 3149 unsigned long nrpages; in buffer_init() local 3161 nrpages = (nr_free_buffer_pages() * 10) / 100; in buffer_init() 3162 max_buffer_heads = nrpages * (PAGE_SIZE / sizeof(struct buffer_head)); in buffer_init()
|
/openbmc/linux/fs/9p/ |
H A D | vfs_file.c | 434 if (inode->i_mapping && inode->i_mapping->nrpages) in v9fs_file_write_iter()
|
/openbmc/linux/fs/exfat/ |
H A D | inode.c | 562 inode->i_mapping->nrpages = 0; in exfat_fill_inode()
|