Home
last modified time | relevance | path

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

123

/Linux-v5.10/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-v5.10/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.c40 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()
Dmprotect.c404 long nrpages = (end - start) >> PAGE_SHIFT; in mprotect_fixup() local
439 if (!may_expand_vm(mm, newflags, nrpages) && in mprotect_fixup()
440 may_expand_vm(mm, oldflags, nrpages)) in mprotect_fixup()
444 charged = nrpages; in mprotect_fixup()
499 vm_stat_account(mm, oldflags, -nrpages); in mprotect_fixup()
500 vm_stat_account(mm, newflags, nrpages); in mprotect_fixup()
Dtruncate.c303 if (mapping->nrpages == 0 && mapping->nrexceptional == 0) in truncate_inode_pages_range()
492 unsigned long nrpages; in truncate_inode_pages_final() local
508 nrpages = mapping->nrpages; in truncate_inode_pages_final()
512 if (nrpages || nrexceptional) { in truncate_inode_pages_final()
717 if (mapping->nrpages == 0 && mapping->nrexceptional == 0) in invalidate_inode_pages2_range()
Dswap_state.c91 ret += spaces[j].nrpages; in total_swapcache_pages()
164 address_space->nrpages += nr; in add_to_swap_cache()
204 address_space->nrpages -= nr; in __delete_from_swap_cache()
Dfilemap.c154 mapping->nrpages -= nr; in page_cache_delete()
340 mapping->nrpages -= total_pages; in page_cache_delete_batch()
633 return mapping->nrpages; in mapping_needs_writeback()
888 mapping->nrpages++; in __add_to_page_cache_locked()
3247 if (written > 0 && mapping->nrpages && in generic_file_direct_write()
/Linux-v5.10/arch/x86/mm/
Dioremap.c46 unsigned long nrpages = size >> PAGE_SHIFT; in ioremap_change_attr() local
52 err = _set_memory_uc(vaddr, nrpages); in ioremap_change_attr()
55 err = _set_memory_wc(vaddr, nrpages); in ioremap_change_attr()
58 err = _set_memory_wt(vaddr, nrpages); in ioremap_change_attr()
61 err = _set_memory_wb(vaddr, nrpages); in ioremap_change_attr()
/Linux-v5.10/fs/
Ddrop_caches.c30 (inode->i_mapping->nrpages == 0 && !need_resched())) { in drop_pagecache_sb()
Dblock_dev.c82 if (mapping->nrpages == 0 && mapping->nrexceptional == 0) in kill_bdev()
94 if (mapping->nrpages) { in invalidate_bdev()
946 ret += inode->i_mapping->nrpages; in nr_blockdev_pages()
2123 mapping->nrpages == 0) { in iterate_bdevs()
Ddirect-io.c291 dio->inode->i_mapping->nrpages) { in dio_complete()
358 dio->inode->i_mapping->nrpages); in dio_bio_end_aio()
/Linux-v5.10/fs/gfs2/
Dglops.c543 unsigned long nrpages; in inode_go_dump() local
549 nrpages = inode->i_data.nrpages; in inode_go_dump()
558 (unsigned long long)i_size_read(inode), nrpages); in inode_go_dump()
Dglock.c276 GLOCK_BUG_ON(gl, mapping->nrpages || in __gfs2_glock_put()
2151 unsigned long nrpages = 0; in gfs2_dump_glock() local
2156 nrpages = mapping->nrpages; in gfs2_dump_glock()
2175 (int)gl->gl_lockref.count, gl->gl_hold_time, nrpages); in gfs2_dump_glock()
Dlog.c637 if (ip->i_inode.i_mapping->nrpages == 0) { in gfs2_ordered_write()
658 if (ip->i_inode.i_mapping->nrpages == 0) in gfs2_ordered_wait()
Dfile.c756 if (mapping->nrpages) { in gfs2_fsync()
778 if (mapping->nrpages) in gfs2_fsync()
/Linux-v5.10/fs/nilfs2/
Dpage.c327 smap->nrpages--; in nilfs_copy_back_pages()
338 dmap->nrpages++; in nilfs_copy_back_pages()
501 if (inode->i_mapping->nrpages == 0) in nilfs_find_uncommitted_extent()
/Linux-v5.10/drivers/iommu/intel/
Diommu.c3427 unsigned long nrpages, uint64_t dma_mask) in intel_alloc_iova() argument
3447 nrpages = __roundup_pow_of_two(nrpages); in intel_alloc_iova()
3455 iova_pfn = alloc_iova_fast(&domain->iovad, nrpages, in intel_alloc_iova()
3460 iova_pfn = alloc_iova_fast(&domain->iovad, nrpages, in intel_alloc_iova()
3464 nrpages); in intel_alloc_iova()
3553 unsigned long nrpages; in intel_unmap() local
3566 nrpages = aligned_nrpages(dev_addr, size); in intel_unmap()
3568 last_pfn = start_pfn + nrpages - 1; in intel_unmap()
3577 nrpages, !freelist, 0); in intel_unmap()
3579 free_iova_fast(&domain->iovad, iova_pfn, dma_to_mm_pfn(nrpages)); in intel_unmap()
[all …]
/Linux-v5.10/fs/f2fs/
Ddebug.c145 si->node_pages = NODE_MAPPING(sbi)->nrpages; in update_general_status()
147 si->meta_pages = META_MAPPING(sbi)->nrpages; in update_general_status()
294 unsigned npages = NODE_MAPPING(sbi)->nrpages; in update_mem_info()
298 unsigned npages = META_MAPPING(sbi)->nrpages; in update_mem_info()
Dnode.c2734 int i, idx, last_offset, nrpages; in f2fs_restore_node_summary() local
2741 for (i = 0; i < last_offset; i += nrpages, addr += nrpages) { in f2fs_restore_node_summary()
2742 nrpages = min(last_offset - i, BIO_MAX_PAGES); in f2fs_restore_node_summary()
2745 f2fs_ra_meta_pages(sbi, addr, nrpages, META_POR, true); in f2fs_restore_node_summary()
2747 for (idx = addr; idx < addr + nrpages; idx++) { in f2fs_restore_node_summary()
2762 addr + nrpages); in f2fs_restore_node_summary()
/Linux-v5.10/fs/nfs/
Dinode.c153 if (mapping->nrpages != 0) { in nfs_sync_mapping()
212 if (inode->i_mapping->nrpages == 0) in nfs_set_cache_invalid()
258 if (mapping->nrpages != 0) { in nfs_zap_mapping()
961 if (inode->i_mapping->nrpages == 0) in nfs_close_context()
1243 if (mapping->nrpages != 0) { in nfs_invalidate_mapping()
/Linux-v5.10/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-v5.10/drivers/block/
Dloop.c1383 if (size_changed && lo->lo_device->bd_inode->i_mapping->nrpages) { in loop_set_status()
1388 lo->lo_device->bd_inode->i_mapping->nrpages); in loop_set_status()
1629 if (lo->lo_device->bd_inode->i_mapping->nrpages) { in loop_set_block_size()
1633 lo->lo_device->bd_inode->i_mapping->nrpages); in loop_set_block_size()
/Linux-v5.10/fs/orangefs/
Dfile.c504 #define mapping_nrpages(idata) ((idata)->nrpages)
/Linux-v5.10/ipc/
Dshm.c841 *rss_add += pages_per_huge_page(h) * mapping->nrpages; in shm_add_rss_swap()
847 *rss_add += inode->i_mapping->nrpages; in shm_add_rss_swap()
851 *rss_add += inode->i_mapping->nrpages; in shm_add_rss_swap()
/Linux-v5.10/fs/iomap/
Ddirect-io.c112 (dio->flags & IOMAP_DIO_WRITE) && inode->i_mapping->nrpages) { in iomap_dio_complete()

123