Searched refs:swp_offset (Results 1 – 16 of 16) sorted by relevance
107 static inline pgoff_t swp_offset(swp_entry_t entry) in swp_offset() function120 return swp_offset(entry) & SWP_PFN_MASK; in swp_offset_pfn()150 arch_entry = __swp_entry(swp_type(entry), swp_offset(entry)); in swp_entry_to_pte()307 swp_offset(entry) | SWP_MIG_YOUNG); in make_migration_entry_young()314 return swp_offset(entry) & SWP_MIG_YOUNG; in is_migration_entry_young()323 swp_offset(entry) | SWP_MIG_DIRTY); in make_migration_entry_dirty()330 return swp_offset(entry) & SWP_MIG_DIRTY; in is_migration_entry_dirty()445 return swp_offset(entry) & PTE_MARKER_MASK; in pte_marker_get()542 arch_entry = __swp_entry(swp_type(entry), swp_offset(entry)); in swp_entry_to_pmd()
73 pgoff_t idx = swp_offset(entry); in get_shadow_from_swap_cache()90 pgoff_t idx = swp_offset(entry); in add_to_swap_cache()145 pgoff_t idx = swp_offset(entry); in __delete_from_swap_cache()336 folio = filemap_get_folio(swap_address_space(entry), swp_offset(entry)); in swap_cache_get_folio()406 index = swp_offset(swp); in filemap_get_incore_folio()434 swp_offset(entry)); in __read_swap_cache_async()436 page = folio_file_page(folio, swp_offset(entry)); in __read_swap_cache_async()624 unsigned long entry_offset = swp_offset(entry); in swap_cluster_readahead()
79 pgoff_t offset = swp_offset(ent); in lookup_swap_cgroup()133 pgoff_t offset = swp_offset(ent); in swap_cgroup_record()
1143 offset = swp_offset(entry); in _swap_info_get()1281 offset = swp_offset(entry); in get_swap_device()1300 unsigned long offset = swp_offset(entry); in __swap_entry_free()1447 pgoff_t offset = swp_offset(entry); in __swap_count()1459 pgoff_t offset = swp_offset(entry); in swap_swapcount()1486 offset = swp_offset(entry); in swp_swapcount()1873 offset = swp_offset(entry); in unuse_pte_range()2823 return swp_offset(pte_to_swp_entry( in generic_max_swapfile_size()3290 offset = swp_offset(entry); in __swap_duplicate()3412 return swp_offset(swap); in __page_file_index()[all …]
323 entry_offset = swp_offset(entry->swpentry); in zswap_rb_search()343 pgoff_t myentry_offset, entry_offset = swp_offset(entry->swpentry); in zswap_rb_insert()348 myentry_offset = swp_offset(myentry->swpentry); in zswap_rb_insert()652 swpoffset = swp_offset(entry->swpentry); in zswap_reclaim_entry()1100 if (zswap_rb_search(&tree->rbroot, swp_offset(entry->swpentry)) != entry) { in zswap_writeback_entry()1197 pgoff_t offset = swp_offset(swp); in zswap_store()1400 pgoff_t offset = swp_offset(swp); in zswap_load()
207 swp_offset(entry)); in change_pte_range()209 entry = make_readable_migration_entry(swp_offset(entry)); in change_pte_range()219 swp_offset(entry)); in change_pte_range()225 swp_offset(entry)); in change_pte_range()
28 (&swapper_spaces[swp_type(entry)][swp_offset(entry) \
142 swp_offset(entry)); in mincore_pte_range()
1087 swp_offset(entry)); in copy_huge_pmd()1827 entry = make_readable_exclusive_migration_entry(swp_offset(entry)); in change_huge_pmd()1829 entry = make_readable_migration_entry(swp_offset(entry)); in change_huge_pmd()2503 offset = swp_offset(folio->swap); in __split_huge_page()
813 max_swap_offset = swp_offset(pte_to_swp_entry(swp_entry_to_pte(swp_entry(0, ~0UL)))); in pte_swap_exclusive_tests()899 swp = make_readable_migration_entry(swp_offset(swp)); in swap_migration_tests()
807 swp_offset(entry)); in copy_nonpresent_pte()842 swp_offset(entry)); in copy_nonpresent_pte()3809 page = folio_file_page(folio, swp_offset(entry)); in do_swap_page()
5113 swp_offset(swp_entry)); in copy_hugetlb_page_range()6636 swp_offset(entry)); in hugetlb_change_protection()6639 swp_offset(entry)); in hugetlb_change_protection()
1748 swap_index = swp_offset(entry); in shmem_replace_folio()
5739 page = find_get_page(swap_address_space(ent), swp_offset(ent)); in mc_handle_swap_pte()
1440 offset = swp_offset(entry); in pte_to_pagemap_entry()1501 offset = swp_offset(entry) + idx; in pagemap_pmd_range()
182 offset = swp_offset(get_swap_page_of_type(swap)); in alloc_swapdev_block()