Home
last modified time | relevance | path

Searched refs:nrpages (Results 1 – 25 of 47) sorted by relevance

12

/Linux-v4.19/arch/sh/mm/
Dioremap_fixed.c52 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-v4.19/mm/
Dearly_ioremap.c110 unsigned int nrpages; in __early_ioremap() local
144 nrpages = size >> PAGE_SHIFT; in __early_ioremap()
145 if (WARN_ON(nrpages > NR_FIX_BTMAPS)) in __early_ioremap()
152 while (nrpages > 0) { in __early_ioremap()
159 --nrpages; in __early_ioremap()
172 unsigned int nrpages; in early_iounmap() local
201 nrpages = PAGE_ALIGN(offset + size) >> PAGE_SHIFT; in early_iounmap()
204 while (nrpages > 0) { in early_iounmap()
210 --nrpages; in early_iounmap()
Dfadvise.c39 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()
110 force_page_cache_readahead(mapping, file, start_index, nrpages); in generic_fadvise()
Dmprotect.c351 long nrpages = (end - start) >> PAGE_SHIFT; in mprotect_fixup() local
383 if (!may_expand_vm(mm, newflags, nrpages) && in mprotect_fixup()
384 may_expand_vm(mm, oldflags, nrpages)) in mprotect_fixup()
388 charged = nrpages; in mprotect_fixup()
443 vm_stat_account(mm, oldflags, -nrpages); in mprotect_fixup()
444 vm_stat_account(mm, newflags, nrpages); in mprotect_fixup()
Dtruncate.c305 if (mapping->nrpages == 0 && mapping->nrexceptional == 0) in truncate_inode_pages_range()
494 unsigned long nrpages; in truncate_inode_pages_final() local
510 nrpages = mapping->nrpages; in truncate_inode_pages_final()
514 if (nrpages || nrexceptional) { in truncate_inode_pages_final()
679 if (mapping->nrpages == 0 && mapping->nrexceptional == 0) in invalidate_inode_pages2_range()
Dswap_state.c90 ret += spaces[j].nrpages; in total_swapcache_pages()
136 address_space->nrpages += nr; in __add_to_swap_cache()
195 address_space->nrpages -= nr; in __delete_from_swap_cache()
Dfilemap.c139 mapping->nrpages++; in page_cache_tree_insert()
182 mapping->nrpages -= nr; in page_cache_tree_delete()
366 mapping->nrpages -= total_pages; in page_cache_tree_delete_batch()
501 if (mapping->nrpages == 0) in filemap_range_has_page()
608 return (!dax_mapping(mapping) && mapping->nrpages) || in mapping_needs_writeback()
3057 if (mapping->nrpages) in generic_file_direct_write()
Dshmem.c284 freed = info->alloced - info->swapped - inode->i_mapping->nrpages; in shmem_recalc_inode()
305 inode->i_mapping->nrpages += pages; in shmem_charge()
632 mapping->nrpages += nr; in shmem_add_to_page_cache()
659 mapping->nrpages--; in shmem_delete_from_page_cache()
1003 if (info->alloced - info->swapped != inode->i_mapping->nrpages) { in shmem_getattr()
/Linux-v4.19/arch/x86/mm/
Dioremap.c42 unsigned long nrpages = size >> PAGE_SHIFT; in ioremap_change_attr() local
48 err = _set_memory_uc(vaddr, nrpages); in ioremap_change_attr()
51 err = _set_memory_wc(vaddr, nrpages); in ioremap_change_attr()
54 err = _set_memory_wt(vaddr, nrpages); in ioremap_change_attr()
57 err = _set_memory_wb(vaddr, nrpages); in ioremap_change_attr()
/Linux-v4.19/fs/
Ddrop_caches.c25 (inode->i_mapping->nrpages == 0)) { in drop_pagecache_sb()
Dblock_dev.c82 if (mapping->nrpages == 0 && mapping->nrexceptional == 0) in kill_bdev()
95 if (mapping->nrpages) { in invalidate_bdev()
918 ret += bdev->bd_inode->i_mapping->nrpages; in nr_blockdev_pages()
2144 mapping->nrpages == 0) { in iterate_bdevs()
Ddirect-io.c310 dio->inode->i_mapping->nrpages) { in dio_complete()
377 dio->inode->i_mapping->nrpages); in dio_bio_end_aio()
/Linux-v4.19/fs/nilfs2/
Dpage.c329 smap->nrpages--; in nilfs_copy_back_pages()
340 dmap->nrpages++; in nilfs_copy_back_pages()
506 if (inode->i_mapping->nrpages == 0) in nilfs_find_uncommitted_extent()
/Linux-v4.19/fs/f2fs/
Ddebug.c97 si->node_pages = NODE_MAPPING(sbi)->nrpages; in update_general_status()
98 si->meta_pages = META_MAPPING(sbi)->nrpages; in update_general_status()
255 npages = NODE_MAPPING(sbi)->nrpages; in update_mem_info()
257 npages = META_MAPPING(sbi)->nrpages; in update_mem_info()
Dnode.c2583 int i, idx, last_offset, nrpages; in f2fs_restore_node_summary() local
2590 for (i = 0; i < last_offset; i += nrpages, addr += nrpages) { in f2fs_restore_node_summary()
2591 nrpages = min(last_offset - i, BIO_MAX_PAGES); in f2fs_restore_node_summary()
2594 f2fs_ra_meta_pages(sbi, addr, nrpages, META_POR, true); in f2fs_restore_node_summary()
2596 for (idx = addr; idx < addr + nrpages; idx++) { in f2fs_restore_node_summary()
2611 addr + nrpages); in f2fs_restore_node_summary()
Dcheckpoint.c186 int f2fs_ra_meta_pages(struct f2fs_sb_info *sbi, block_t start, int nrpages, in f2fs_ra_meta_pages() argument
206 for (; nrpages-- > 0; blkno++) { in f2fs_ra_meta_pages()
/Linux-v4.19/drivers/iommu/
Dintel-iommu.c3503 unsigned long nrpages, uint64_t dma_mask) in intel_alloc_iova() argument
3510 nrpages = __roundup_pow_of_two(nrpages); in intel_alloc_iova()
3518 iova_pfn = alloc_iova_fast(&domain->iovad, nrpages, in intel_alloc_iova()
3523 iova_pfn = alloc_iova_fast(&domain->iovad, nrpages, in intel_alloc_iova()
3527 nrpages, dev_name(dev)); in intel_alloc_iova()
3697 unsigned long nrpages; in intel_unmap() local
3712 nrpages = aligned_nrpages(dev_addr, size); in intel_unmap()
3714 last_pfn = start_pfn + nrpages - 1; in intel_unmap()
3723 nrpages, !freelist, 0); in intel_unmap()
3725 free_iova_fast(&domain->iovad, iova_pfn, dma_to_mm_pfn(nrpages)); in intel_unmap()
[all …]
/Linux-v4.19/fs/nfs/
Dinode.c151 if (mapping->nrpages != 0) { in nfs_sync_mapping()
208 if (inode->i_mapping->nrpages == 0) in nfs_set_cache_invalid()
252 if (mapping->nrpages != 0) { in nfs_zap_mapping()
936 if (inode->i_mapping->nrpages == 0) in nfs_close_context()
1212 if (mapping->nrpages != 0) { in nfs_invalidate_mapping()
/Linux-v4.19/fs/exofs/
Dinode.c795 start + mapping->nrpages : in exofs_writepages()
801 expected_pages = mapping->nrpages; in exofs_writepages()
809 mapping->nrpages, start, end, expected_pages); in exofs_writepages()
/Linux-v4.19/fs/gfs2/
Dlog.c554 if (ip->i_inode.i_mapping->nrpages == 0) { in gfs2_ordered_write()
577 if (ip->i_inode.i_mapping->nrpages == 0) in gfs2_ordered_wait()
Dfile.c665 if (mapping->nrpages) { in gfs2_fsync()
687 if (mapping->nrpages) in gfs2_fsync()
/Linux-v4.19/fs/jffs2/
Ddir.c188 inode->i_mapping->nrpages = 0; in jffs2_create()
210 f->inocache->pino_nlink, inode->i_mapping->nrpages); in jffs2_create()
/Linux-v4.19/ipc/
Dshm.c842 *rss_add += pages_per_huge_page(h) * mapping->nrpages; in shm_add_rss_swap()
848 *rss_add += inode->i_mapping->nrpages; in shm_add_rss_swap()
852 *rss_add += inode->i_mapping->nrpages; in shm_add_rss_swap()
/Linux-v4.19/fs/orangefs/
Dfile.c577 #define mapping_nrpages(idata) ((idata)->nrpages)
/Linux-v4.19/fs/9p/
Dvfs_file.c426 if (inode->i_mapping && inode->i_mapping->nrpages) in v9fs_file_write_iter()

12