Home
last modified time | relevance | path

Searched refs:swp_tb (Results 1 – 3 of 3) sorted by relevance

/linux/mm/
H A Dswap_table.h51 static inline bool swp_tb_is_null(unsigned long swp_tb) in swp_tb_is_null() argument
53 return !swp_tb; in swp_tb_is_null()
56 static inline bool swp_tb_is_folio(unsigned long swp_tb) in swp_tb_is_folio() argument
58 return !xa_is_value((void *)swp_tb) && !swp_tb_is_null(swp_tb); in swp_tb_is_folio()
61 static inline bool swp_tb_is_shadow(unsigned long swp_tb) in swp_tb_is_shadow() argument
63 return xa_is_value((void *)swp_tb); in swp_tb_is_shadow()
69 static inline struct folio *swp_tb_to_folio(unsigned long swp_tb) in swp_tb_to_folio() argument
71 VM_WARN_ON(!swp_tb_is_folio(swp_tb)); in swp_tb_to_folio()
72 return (void *)swp_tb; in swp_tb_to_folio()
75 static inline void *swp_tb_to_shadow(unsigned long swp_tb) in swp_tb_to_shadow() argument
[all …]
H A Dswap_state.c90 unsigned long swp_tb; in swap_cache_get_folio() local
94 swp_tb = swap_table_get(__swap_entry_to_cluster(entry), in swap_cache_get_folio()
96 if (!swp_tb_is_folio(swp_tb)) in swap_cache_get_folio()
98 folio = swp_tb_to_folio(swp_tb); in swap_cache_get_folio()
116 unsigned long swp_tb; in swap_cache_get_shadow() local
118 swp_tb = swap_table_get(__swap_entry_to_cluster(entry), in swap_cache_get_shadow()
120 if (swp_tb_is_shadow(swp_tb)) in swap_cache_get_shadow()
121 return swp_tb_to_shadow(swp_tb); in swap_cache_get_shadow()
H A Dswapfile.c856 unsigned long swp_tb; in swap_cluster_assert_table_empty() local
860 swp_tb = __swap_table_get(ci, ci_off); in swap_cluster_assert_table_empty()
861 VM_WARN_ON_ONCE(!swp_tb_is_null(swp_tb)); in swap_cluster_assert_table_empty()