| /linux/fs/erofs/ |
| H A D | zutil.c | 13 unsigned int nrpages; member 45 if (requiredpages > gbuf->nrpages) { in z_erofs_get_gbuf() 65 int z_erofs_gbuf_growsize(unsigned int nrpages) in z_erofs_gbuf_growsize() argument 75 if (nrpages <= z_erofs_gbuf_nrpages) { in z_erofs_gbuf_growsize() 82 tmp_pages = kzalloc_objs(*tmp_pages, nrpages); in z_erofs_gbuf_growsize() 86 for (j = 0; j < gbuf->nrpages; ++j) in z_erofs_gbuf_growsize() 90 j = alloc_pages_bulk(GFP_KERNEL, nrpages, in z_erofs_gbuf_growsize() 94 } while (j != nrpages); in z_erofs_gbuf_growsize() 96 ptr = vmap(tmp_pages, nrpages, VM_MAP, PAGE_KERNEL); in z_erofs_gbuf_growsize() 105 gbuf->nrpages = nrpages; in z_erofs_gbuf_growsize() [all …]
|
| H A D | zdata.c | 254 unsigned int nrpages = PAGE_ALIGN(size) >> PAGE_SHIFT; in z_erofs_alloc_pcluster() local 260 if (nrpages > pcs->maxpages) in z_erofs_alloc_pcluster() 1904 unsigned int nrpages = readahead_count(rac); in z_erofs_read_folio() 1908 trace_erofs_readahead(realinode, readahead_index(rac), nrpages, false); in z_erofs_readahead() 1928 (void)z_erofs_runqueue(&f, nrpages << PAGE_SHIFT); in z_erofs_readahead() 1914 unsigned int nrpages = readahead_count(rac); z_erofs_readahead() local
|
| H A D | internal.h | 491 int z_erofs_gbuf_growsize(unsigned int nrpages); in erofs_get_aops()
|
| /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()
|
| /linux/arch/x86/mm/ |
| H A D | ioremap.c | 48 unsigned long nrpages = size >> PAGE_SHIFT; in ioremap_change_attr() local 54 err = _set_memory_uc(vaddr, nrpages); in ioremap_change_attr() 57 err = _set_memory_wc(vaddr, nrpages); in ioremap_change_attr() 60 err = _set_memory_wt(vaddr, nrpages); in ioremap_change_attr() 63 err = _set_memory_wb(vaddr, nrpages); in ioremap_change_attr()
|
| /linux/lib/ |
| H A D | test_xarray.c | 738 unsigned int nrpages = 1UL << order; in check_xa_multi_store_adv_add() local 741 XA_BUG_ON(xa, index & (nrpages - 1)); in check_xa_multi_store_adv_add() 821 unsigned int nrpages = 1UL << order; in check_xa_multi_store_adv() local 826 base = round_down(index, nrpages); in check_xa_multi_store_adv() 827 next_index = round_down(base + nrpages, nrpages); in check_xa_multi_store_adv() 828 next_next_index = round_down(next_index + nrpages, nrpages); in check_xa_multi_store_adv() 832 for (i = 0; i < nrpages; i++) in check_xa_multi_store_adv() 847 for (i = 0; i < nrpages; i++) in check_xa_multi_store_adv() 861 for (i = 0; i < nrpages; i++) in check_xa_multi_store_adv() 864 for (i = 0; i < nrpages; i++) in check_xa_multi_store_adv() [all …]
|
| /linux/fs/netfs/ |
| H A D | locking.c | 139 if (inode->i_mapping->nrpages != 0) { in netfs_block_buffered()
|
| H A D | direct_write.c | 28 wreq->mapping->nrpages) { in netfs_unbuffered_write_done()
|
| /linux/mm/ |
| H A D | vma.c | 1440 long nrpages; in vms_gather_munmap_vmas() local 1459 nrpages = vma_pages(next); in vms_gather_munmap_vmas() 1461 vms->nr_pages += nrpages; in vms_gather_munmap_vmas() 1463 vms->locked_vm += nrpages; in vms_gather_munmap_vmas() 1466 vms->nr_accounted += nrpages; in vms_gather_munmap_vmas() 1469 vms->exec_vm += nrpages; in vms_gather_munmap_vmas() 1471 vms->stack_vm += nrpages; in vms_gather_munmap_vmas() 1473 vms->data_vm += nrpages; in vms_gather_munmap_vmas()
|
| H A D | filemap.c | 147 mapping->nrpages -= nr; in page_cache_delete() 317 mapping->nrpages -= total_pages; in page_cache_delete_batch() 634 return mapping->nrpages; in mapping_needs_writeback() 919 mapping->nrpages += nr; in __filemap_add_folio() 4267 if (mapping->nrpages && in generic_file_direct_write() 4564 if (!mapping || !mapping->nrpages || end < start) 4570 if (!mapping->nrpages) in filemap_cachestat()
|
| /linux/fs/nfs/ |
| H A D | inode.c | 151 if (mapping->nrpages != 0) { in nfs_sync_mapping() 213 if (inode->i_mapping->nrpages == 0) in nfs_set_cache_invalid() 219 if (inode->i_mapping->nrpages == 0 || in nfs_set_cache_invalid() 263 if (mapping->nrpages != 0) { in nfs_zap_mapping() 1202 if (inode->i_mapping->nrpages == 0) in alloc_nfs_open_context() 1484 if (mapping->nrpages != 0) { in nfs_invalidate_mapping()
|
| H A D | direct.c | 1054 if (mapping->nrpages) { in nfs_file_direct_write()
|
| H A D | pnfs.c | 2451 (i_size_read(ino) == 0 || ino->i_mapping->nrpages != 0)) in _lgopen_prepare_attached()
|
| /linux/fs/orangefs/ |
| H A D | file.c | 422 #define mapping_nrpages(idata) ((idata)->nrpages)
|
| /linux/ipc/ |
| H A D | shm.c | 946 *rss_add += pages_per_huge_page(h) * mapping->nrpages; in shm_add_rss_swap() 952 *rss_add += inode->i_mapping->nrpages; in shm_add_rss_swap() 956 *rss_add += inode->i_mapping->nrpages; in shm_add_rss_swap()
|
| /linux/fs/gfs2/ |
| H A D | file.c | 751 if (mapping->nrpages) { in gfs2_fsync() 773 if (mapping->nrpages) in gfs2_fsync()
|
| /linux/fs/iomap/ |
| H A D | direct-io.c | 216 if (dio->iocb->ki_filp->f_mapping->nrpages) in iomap_dio_done()
|
| /linux/include/linux/ |
| H A D | pagemap.h | 1321 if (!mapping->nrpages) in filemap_range_needs_writeback()
|
| /linux/fs/ceph/ |
| H A D | caps.c | 991 ci->netfs.inode.i_data.nrpages)) in __ceph_caps_used() 1971 if (inode->i_data.nrpages == 0 && in try_nonblocking_invalidate() 2109 inode->i_data.nrpages && /* have cached pages */ in ceph_check_caps() 5030 if (inode->i_data.nrpages > 0) in ceph_purge_inode_cap()
|
| /linux/fs/smb/client/ |
| H A D | inode.c | 2942 inode->i_mapping && inode->i_mapping->nrpages != 0) { 3017 inode->i_mapping->nrpages != 0) {
|
| H A D | cifsfs.c | 1100 inode->i_mapping->nrpages != 0) { in cifs_llseek()
|
| /linux/fs/ |
| H A D | inode.c | 771 BUG_ON(inode->i_data.nrpages); in clear_inode()
|
| /linux/fs/ext4/ |
| H A D | inode.c | 2797 if (!mapping->nrpages || !mapping_tagged(mapping, PAGECACHE_TAG_DIRTY)) in ext4_do_writepages()
|
| /linux/fs/btrfs/ |
| H A D | inode.c | 7941 WARN_ON(vfs_inode->i_data.nrpages); in btrfs_truncate()
|