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()416 return swp_offset(entry) & PTE_MARKER_MASK; in pte_marker_get()512 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()1146 if (data_race(!p->swap_map[swp_offset(entry)])) in _swap_info_get()1276 offset = swp_offset(entry); in get_swap_device()1295 unsigned long offset = swp_offset(entry); in __swap_entry_free()1310 unsigned long offset = swp_offset(entry); in swap_entry_free()1342 unsigned long offset = swp_offset(entry); in put_swap_folio()1392 unsigned long offset = swp_offset(entry); in split_swap_cluster()1442 pgoff_t offset = swp_offset(entry); in __swap_count()1454 pgoff_t offset = swp_offset(entry); in swap_swapcount()1481 offset = swp_offset(entry); in swp_swapcount()[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()
1094 swp_offset(entry)); in copy_huge_pmd()1838 entry = make_readable_exclusive_migration_entry(swp_offset(entry)); in change_huge_pmd()1840 entry = make_readable_migration_entry(swp_offset(entry)); in change_huge_pmd()2511 offset = swp_offset(folio->swap); in __split_huge_page()
834 max_swap_offset = swp_offset(pte_to_swp_entry(swp_entry_to_pte(swp_entry(0, ~0UL)))); in pte_swap_exclusive_tests()920 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()3792 page = folio_file_page(folio, swp_offset(entry)); in do_swap_page()
5118 swp_offset(swp_entry)); in copy_hugetlb_page_range()6641 swp_offset(entry)); in hugetlb_change_protection()6644 swp_offset(entry)); in hugetlb_change_protection()
1741 swap_index = swp_offset(entry); in shmem_replace_folio()
5718 page = find_get_page(swap_address_space(ent), swp_offset(ent)); in mc_handle_swap_pte()
1437 offset = swp_offset(entry); in pte_to_pagemap_entry()1500 offset = swp_offset(entry); in pagemap_pmd_range()
182 offset = swp_offset(get_swap_page_of_type(swap)); in alloc_swapdev_block()