Lines Matching defs:mapping

7  * Simple, low overhead reverse mapping scheme.
25 * mapping->invalidate_lock (in filemap_fault)
29 * mapping->i_mmap_rwsem
34 * mapping->private_lock (in block_dirty_folio)
45 * anon_vma->rwsem,mapping->i_mmap_rwsem (memory_failure, collect_procs_anon)
52 * mapping->i_mmap_rwsem (also used for hugetlb pmd sharing)
165 * This makes sure the memory mapping described by 'vma' has
171 * not we either need to find an adjacent mapping that we
491 * page_remove_rmap() that the anon_vma pointer from page->mapping is valid
501 anon_mapping = (unsigned long)READ_ONCE(folio->mapping);
547 anon_mapping = (unsigned long)READ_ONCE(folio->mapping);
760 } else if (vma->vm_file->f_mapping != folio->mapping) {
875 * Ignore references from this mapping if it has no recency. If the
876 * folio has been used in another mapping, we will catch it; if this
877 * other mapping is already gone, the unmap path will have set the
1030 struct address_space *mapping;
1042 mapping = folio_mapping(folio);
1043 if (!mapping)
1131 WRITE_ONCE(folio->mapping, anon_vma);
1140 * @address: User virtual address of the mapping
1156 * page mapping!
1162 * page_idle does a lockless/optimistic rmap scan on folio->mapping.
1165 * could mistake the mapping for a struct address_space and crash.
1168 WRITE_ONCE(folio->mapping, (struct address_space *) anon_vma);
1178 * @page: the page to check the mapping of
1179 * @vma: the vm area in which the mapping is added
1186 * The page's anon-rmap details (mapping and index) are guaranteed to
1203 * page_add_anon_rmap - add pte mapping to an anonymous page
1204 * @page: the page to add the mapping to
1205 * @vma: the vm area in which the mapping is added
1210 * the anon_vma case: to serialize mapping,index checking after setting,
1271 * folio_add_new_anon_rmap - Add mapping to a new anonymous folio.
1272 * @folio: The folio to add the mapping to.
1273 * @vma: the vm area in which the mapping is added
1308 * folio_add_file_rmap_range - add pte mapping to page range of a folio
1309 * @folio: The folio to add the mapping to
1312 * @vma: the vm area in which the mapping is added
1370 * page_add_file_rmap - add pte mapping to a file page
1371 * @page: the page to add the mapping to
1372 * @vma: the vm area in which the mapping is added
1394 * page_remove_rmap - take down pte mapping from a page
1395 * @page: page to remove mapping from
1396 * @vma: the vm area from which the mapping is removed
1470 * It would be tidy to reset folio_test_anon mapping when fully
1472 * which increments mapcount after us but sets mapping before us:
1818 * Tries to remove all the page table entries which are mapping this
2161 * Tries to remove all the page table entries which are mapping this folio and
2299 * Tries to remove all the page table entries which are mapping this
2346 * This function finds ptes mapping page(s) to the given address range, locks
2348 * access. On fault these entries are replaced with the original mapping after
2437 * Find all the mappings of a folio using the mapping pointer and the vma
2486 * Find all the mappings of a folio using the mapping pointer and the vma chains
2492 struct address_space *mapping = folio_mapping(folio);
2497 * The page lock not only makes sure that page->mapping cannot
2499 * structure at mapping cannot be freed and reused yet,
2500 * so we can safely take mapping->i_mmap_rwsem.
2504 if (!mapping)
2510 if (i_mmap_trylock_read(mapping))
2518 i_mmap_lock_read(mapping);
2521 vma_interval_tree_foreach(vma, &mapping->i_mmap,
2539 i_mmap_unlock_read(mapping);