Home
last modified time | relevance | path

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

123

/Linux-v5.4/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.4/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.c38 unsigned long nrpages; in generic_fadvise() local
101 nrpages = end_index - start_index + 1; in generic_fadvise()
102 if (!nrpages) in generic_fadvise()
103 nrpages = ~0UL; in generic_fadvise()
109 force_page_cache_readahead(mapping, file, start_index, nrpages); in generic_fadvise()
Dmprotect.c344 long nrpages = (end - start) >> PAGE_SHIFT; in mprotect_fixup() local
379 if (!may_expand_vm(mm, newflags, nrpages) && in mprotect_fixup()
380 may_expand_vm(mm, oldflags, nrpages)) in mprotect_fixup()
384 charged = nrpages; in mprotect_fixup()
439 vm_stat_account(mm, oldflags, -nrpages); in mprotect_fixup()
440 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()
695 if (mapping->nrpages == 0 && mapping->nrexceptional == 0) in invalidate_inode_pages2_range()
Dswap_state.c91 ret += spaces[j].nrpages; in total_swapcache_pages()
139 address_space->nrpages += nr; in add_to_swap_cache()
176 address_space->nrpages -= nr; in __delete_from_swap_cache()
Dfilemap.c153 mapping->nrpages -= nr; in page_cache_delete()
339 mapping->nrpages -= total_pages; in page_cache_delete_batch()
632 return mapping->nrpages; in mapping_needs_writeback()
890 mapping->nrpages++; in __add_to_page_cache_locked()
3223 if (mapping->nrpages) in generic_file_direct_write()
/Linux-v5.4/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.4/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()
95 if (mapping->nrpages) { in invalidate_bdev()
952 ret += bdev->bd_inode->i_mapping->nrpages; in nr_blockdev_pages()
2220 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-v5.4/fs/gfs2/
Dglops.c473 unsigned long nrpages; in inode_go_dump() local
479 nrpages = inode->i_data.nrpages; in inode_go_dump()
488 (unsigned long long)i_size_read(inode), nrpages); in inode_go_dump()
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.c691 if (mapping->nrpages) { in gfs2_fsync()
713 if (mapping->nrpages) in gfs2_fsync()
/Linux-v5.4/fs/nilfs2/
Dpage.c328 smap->nrpages--; in nilfs_copy_back_pages()
339 dmap->nrpages++; in nilfs_copy_back_pages()
503 if (inode->i_mapping->nrpages == 0) in nilfs_find_uncommitted_extent()
/Linux-v5.4/drivers/iommu/
Dintel-iommu.c3381 unsigned long nrpages, uint64_t dma_mask) in intel_alloc_iova() argument
3388 nrpages = __roundup_pow_of_two(nrpages); in intel_alloc_iova()
3396 iova_pfn = alloc_iova_fast(&domain->iovad, nrpages, in intel_alloc_iova()
3401 iova_pfn = alloc_iova_fast(&domain->iovad, nrpages, in intel_alloc_iova()
3404 dev_err(dev, "Allocating %ld-page iova failed", nrpages); in intel_alloc_iova()
3586 unsigned long nrpages; in intel_unmap() local
3599 nrpages = aligned_nrpages(dev_addr, size); in intel_unmap()
3601 last_pfn = start_pfn + nrpages - 1; in intel_unmap()
3610 nrpages, !freelist, 0); in intel_unmap()
3612 free_iova_fast(&domain->iovad, iova_pfn, dma_to_mm_pfn(nrpages)); in intel_unmap()
[all …]
/Linux-v5.4/fs/f2fs/
Ddebug.c107 si->node_pages = NODE_MAPPING(sbi)->nrpages; in update_general_status()
109 si->meta_pages = META_MAPPING(sbi)->nrpages; in update_general_status()
270 unsigned npages = NODE_MAPPING(sbi)->nrpages; in update_mem_info()
274 unsigned npages = META_MAPPING(sbi)->nrpages; in update_mem_info()
Dnode.c2666 int i, idx, last_offset, nrpages; in f2fs_restore_node_summary() local
2673 for (i = 0; i < last_offset; i += nrpages, addr += nrpages) { in f2fs_restore_node_summary()
2674 nrpages = min(last_offset - i, BIO_MAX_PAGES); in f2fs_restore_node_summary()
2677 f2fs_ra_meta_pages(sbi, addr, nrpages, META_POR, true); in f2fs_restore_node_summary()
2679 for (idx = addr; idx < addr + nrpages; idx++) { in f2fs_restore_node_summary()
2694 addr + nrpages); in f2fs_restore_node_summary()
/Linux-v5.4/fs/nfs/
Dinode.c154 if (mapping->nrpages != 0) { in nfs_sync_mapping()
211 if (inode->i_mapping->nrpages == 0) in nfs_set_cache_invalid()
255 if (mapping->nrpages != 0) { in nfs_zap_mapping()
944 if (inode->i_mapping->nrpages == 0) in nfs_close_context()
1219 if (mapping->nrpages != 0) { in nfs_invalidate_mapping()
/Linux-v5.4/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.4/drivers/block/
Dloop.c1289 if (lo->lo_device->bd_inode->i_mapping->nrpages) { in loop_set_status()
1293 lo->lo_device->bd_inode->i_mapping->nrpages); in loop_set_status()
1538 lo->lo_device->bd_inode->i_mapping->nrpages) { in loop_set_block_size()
1542 lo->lo_device->bd_inode->i_mapping->nrpages); in loop_set_block_size()
/Linux-v5.4/fs/orangefs/
Dfile.c484 #define mapping_nrpages(idata) ((idata)->nrpages)
/Linux-v5.4/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-v5.4/fs/iomap/
Ddirect-io.c106 (dio->flags & IOMAP_DIO_WRITE) && inode->i_mapping->nrpages) { in iomap_dio_complete()
/Linux-v5.4/fs/9p/
Dvfs_file.c427 if (inode->i_mapping && inode->i_mapping->nrpages) in v9fs_file_write_iter()

123