Searched refs:nrpages (Results 1 – 9 of 9) sorted by relevance
/mm/ |
D | early_ioremap.c | 110 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()
|
D | fadvise.c | 40 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()
|
D | mprotect.c | 404 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() 501 vm_stat_account(mm, oldflags, -nrpages); in mprotect_fixup() 502 vm_stat_account(mm, newflags, nrpages); in mprotect_fixup()
|
D | truncate.c | 300 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() 714 if (mapping->nrpages == 0 && mapping->nrexceptional == 0) in invalidate_inode_pages2_range()
|
D | swap_state.c | 91 ret += spaces[j].nrpages; in total_swapcache_pages() 165 address_space->nrpages += nr; in add_to_swap_cache() 205 address_space->nrpages -= nr; in __delete_from_swap_cache()
|
D | filemap.c | 159 mapping->nrpages -= nr; in page_cache_delete() 345 mapping->nrpages -= total_pages; in page_cache_delete_batch() 638 return mapping->nrpages; in mapping_needs_writeback() 895 mapping->nrpages++; in __add_to_page_cache_locked() 3429 if (written > 0 && mapping->nrpages && in generic_file_direct_write()
|
D | shmem.c | 374 freed = info->alloced - info->swapped - inode->i_mapping->nrpages; in shmem_recalc_inode() 391 inode->i_mapping->nrpages += pages; in shmem_charge() 730 mapping->nrpages += nr; in shmem_add_to_page_cache() 762 mapping->nrpages--; in shmem_delete_from_page_cache() 1082 if (info->alloced - info->swapped != inode->i_mapping->nrpages) { in shmem_getattr()
|
D | mmap.c | 2766 long nrpages = vma_pages(vma); in remove_vma_list() local 2769 nr_accounted += nrpages; in remove_vma_list() 2770 vm_stat_account(mm, vma->vm_flags, -nrpages); in remove_vma_list()
|
D | khugepaged.c | 1992 mapping->nrpages -= nr_none; in collapse_file()
|