Home
last modified time | relevance | path

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

/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.c378 long nrpages = (end - start) >> PAGE_SHIFT; in mprotect_fixup() local
413 if (!may_expand_vm(mm, newflags, nrpages) && in mprotect_fixup()
414 may_expand_vm(mm, oldflags, nrpages)) in mprotect_fixup()
418 charged = nrpages; in mprotect_fixup()
473 vm_stat_account(mm, oldflags, -nrpages); in mprotect_fixup()
474 vm_stat_account(mm, newflags, nrpages); in mprotect_fixup()
Dtruncate.c300 if (mapping->nrpages == 0 && mapping->nrexceptional == 0) in truncate_inode_pages_range()
489 unsigned long nrpages; in truncate_inode_pages_final() local
505 nrpages = mapping->nrpages; in truncate_inode_pages_final()
509 if (nrpages || nrexceptional) { in truncate_inode_pages_final()
692 if (mapping->nrpages == 0 && mapping->nrexceptional == 0) in invalidate_inode_pages2_range()
Dswap_state.c92 ret += spaces[j].nrpages; in total_swapcache_pages()
140 address_space->nrpages += nr; in add_to_swap_cache()
177 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()
909 mapping->nrpages++; in __add_to_page_cache_locked()
3368 if (mapping->nrpages) in generic_file_direct_write()
Dshmem.c306 freed = info->alloced - info->swapped - inode->i_mapping->nrpages; in shmem_recalc_inode()
323 inode->i_mapping->nrpages += pages; in shmem_charge()
648 mapping->nrpages += nr; in shmem_add_to_page_cache()
677 mapping->nrpages--; in shmem_delete_from_page_cache()
1009 if (info->alloced - info->swapped != inode->i_mapping->nrpages) { in shmem_getattr()
Dmmap.c2595 long nrpages = vma_pages(vma); in remove_vma_list() local
2598 nr_accounted += nrpages; in remove_vma_list()
2599 vm_stat_account(mm, vma->vm_flags, -nrpages); in remove_vma_list()
Dkhugepaged.c1820 mapping->nrpages -= nr_none; in collapse_file()