| /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/f2fs/ |
| H A D | debug.c | 226 si->node_pages = NODE_MAPPING(sbi)->nrpages; in update_general_status() 228 si->meta_pages = META_MAPPING(sbi)->nrpages; in update_general_status() 231 si->compress_pages = COMPRESS_MAPPING(sbi)->nrpages; in update_general_status() 387 unsigned long npages = NODE_MAPPING(sbi)->nrpages; in update_mem_info() 392 unsigned long npages = META_MAPPING(sbi)->nrpages; in update_mem_info() 398 unsigned long npages = COMPRESS_MAPPING(sbi)->nrpages; in update_mem_info()
|
| H A D | node.c | 121 (COMPRESS_MAPPING(sbi)->nrpages < in f2fs_available_free_memory() 3004 int i, idx, last_offset, nrpages; in f2fs_restore_node_summary() local 3011 for (i = 0; i < last_offset; i += nrpages, addr += nrpages) { in f2fs_restore_node_summary() 3012 nrpages = bio_max_segs(last_offset - i); in f2fs_restore_node_summary() 3015 f2fs_ra_meta_pages(sbi, addr, nrpages, META_POR, true); in f2fs_restore_node_summary() 3017 for (idx = addr; idx < addr + nrpages; idx++) { in f2fs_restore_node_summary() 3032 addr + nrpages); in f2fs_restore_node_summary()
|
| H A D | data.c | 2526 unsigned nrpages; in f2fs_read_data_large_folio() local 2551 nrpages = folio_nr_pages(folio); in f2fs_read_data_large_folio() 2553 for (; nrpages; nrpages--, max_nr_pages--, index++, offset++) { in f2fs_read_data_large_folio()
|
| /linux/fs/netfs/ |
| H A D | locking.c | 144 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 | 1520 long nrpages; in vms_gather_munmap_vmas() local 1539 nrpages = vma_pages(next); in vms_gather_munmap_vmas() 1541 vms->nr_pages += nrpages; in vms_gather_munmap_vmas() 1543 vms->locked_vm += nrpages; in vms_gather_munmap_vmas() 1546 vms->nr_accounted += nrpages; in vms_gather_munmap_vmas() 1549 vms->exec_vm += nrpages; in vms_gather_munmap_vmas() 1551 vms->stack_vm += nrpages; in vms_gather_munmap_vmas() 1553 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() 4283 if (mapping->nrpages && in kiocb_invalidate_post_direct_write() 4580 if (!mapping || !mapping->nrpages || end < start) in filemap_invalidate_inode() 4586 if (!mapping->nrpages) in filemap_invalidate_inode()
|
| H A D | shmem.c | 433 * But normally info->alloced == inode->i_mapping->nrpages + info->swapped 434 * So mm freed is info->alloced - (inode->i_mapping->nrpages + info->swapped) 448 READ_ONCE(inode->i_mapping->nrpages); in shmem_recalc_inode() 451 * after i_mapping->nrpages has already been adjusted (up or down), in shmem_recalc_inode() 452 * shmem_writeout() has to raise swapped before nrpages is lowered - in shmem_recalc_inode() 478 /* nrpages adjustment first, then shmem_recalc_inode() when balanced */ in shmem_charge() 480 mapping->nrpages += pages; in shmem_charge() 490 /* nrpages adjustment done by __filemap_remove_folio() or caller */ in shmem_uncharge() 937 mapping->nrpages += nr; in shmem_add_to_page_cache() 963 mapping->nrpages in shmem_delete_from_page_cache() [all...] |
| /linux/fs/erofs/ |
| H A D | zdata.c | 264 unsigned int nrpages = PAGE_ALIGN(size) >> PAGE_SHIFT; in z_erofs_alloc_pcluster() local 270 if (nrpages > pcs->maxpages) in z_erofs_alloc_pcluster() 1888 unsigned int nrpages = readahead_count(rac); in z_erofs_readahead() local 1892 trace_erofs_readahead(realinode, readahead_index(rac), nrpages, false); in z_erofs_readahead() 1912 (void)z_erofs_runqueue(&f, nrpages << PAGE_SHIFT); in z_erofs_readahead()
|
| H A D | internal.h | 492 int z_erofs_gbuf_growsize(unsigned int nrpages);
|
| /linux/block/ |
| H A D | bdev.c | 98 if (mapping->nrpages) { in invalidate_bdev() 568 ret += inode->i_mapping->nrpages; in nr_blockdev_pages() 1350 mapping->nrpages == 0) { in sync_bdevs()
|
| /linux/fs/nfs/ |
| H A D | inode.c | 130 if (mapping->nrpages != 0) { in nfs_sync_mapping() 192 if (inode->i_mapping->nrpages == 0) in nfs_set_cache_invalid() 198 if (inode->i_mapping->nrpages == 0 || in nfs_set_cache_invalid() 242 if (mapping->nrpages != 0) { in nfs_zap_mapping() 1182 if (inode->i_mapping->nrpages == 0) in nfs_close_context() 1465 if (mapping->nrpages != 0) { in nfs_invalidate_mapping()
|
| H A D | direct.c | 1042 if (mapping->nrpages) { in nfs_file_direct_write()
|
| /linux/fs/ |
| H A D | dax.c | 743 mapping->nrpages -= PG_PMD_NR; in grab_mapping_entry() 759 mapping->nrpages += 1UL << order; in grab_mapping_entry() 872 mapping->nrpages -= 1UL << dax_entry_order(entry); in __dax_invalidate_entry() 951 mapping->nrpages -= 1UL << dax_entry_order(entry); in dax_delete_mapping_range()
|
| H A D | buffer.c | 2992 unsigned long nrpages; in buffer_init() local 3000 nrpages = (nr_free_buffer_pages() * 10) / 100; in buffer_init() 3001 max_buffer_heads = nrpages * (PAGE_SIZE / sizeof(struct buffer_head)); in buffer_init()
|
| /linux/fs/orangefs/ |
| H A D | file.c | 422 #define mapping_nrpages(idata) ((idata)->nrpages)
|
| /linux/fs/gfs2/ |
| H A D | file.c | 751 if (mapping->nrpages) { in gfs2_fsync() 773 if (mapping->nrpages) in gfs2_fsync()
|
| H A D | super.c | 1343 bool need_trans = gfs2_is_jdata(ip) && mapping->nrpages; in gfs2_truncate_inode_pages() 1375 bool need_lock = gfs2_is_jdata(ip) && mapping->nrpages; in gfs2_truncate_inode_pages_final()
|
| /linux/fs/xfs/ |
| H A D | xfs_bmap_util.c | 529 VFS_I(ip)->i_mapping->nrpages == 0 && in xfs_can_free_eofblocks() 1266 if (VFS_I(ip)->i_mapping->nrpages) in xfs_swap_extent_flush()
|
| /linux/include/trace/events/ |
| H A D | f2fs.h | 1368 __field(pgoff_t, nrpages) 1382 __entry->nrpages= folio_nr_pages(folio); 1393 (unsigned long)__entry->nrpages,
|
| /linux/fs/iomap/ |
| H A D | direct-io.c | 217 if (dio->iocb->ki_filp->f_mapping->nrpages) in iomap_dio_done()
|
| /linux/include/linux/ |
| H A D | pagemap.h | 1384 if (!mapping->nrpages) in filemap_range_needs_writeback()
|