Home
last modified time | relevance | path

Searched refs:swap_cluster_info (Results 1 – 9 of 9) sorted by relevance

/linux/mm/
H A Dswap.h30 struct swap_cluster_info { struct
32 * Protect swap_cluster_info fields argument
84 static inline struct swap_cluster_info *__swap_offset_to_cluster( in __swap_offset_to_cluster()
92 static inline struct swap_cluster_info *__swap_entry_to_cluster(swp_entry_t entry) in __swap_entry_to_cluster()
98 static __always_inline struct swap_cluster_info *__swap_cluster_lock( in __swap_cluster_lock()
101 struct swap_cluster_info *ci = __swap_offset_to_cluster(si, offset); in __swap_cluster_lock()
129 static inline struct swap_cluster_info *swap_cluster_lock( in swap_cluster_lock()
135 static inline struct swap_cluster_info *__swap_cluster_get_and_lock( in __swap_cluster_get_and_lock()
156 static inline struct swap_cluster_info *swap_cluster_get_and_lock( in swap_cluster_get_and_lock()
171 static inline struct swap_cluster_info *swap_cluster_get_and_lock_ir in swap_cluster_get_and_lock_irq()
36 countswap_cluster_info global() argument
37 flagsswap_cluster_info global() argument
38 orderswap_cluster_info global() argument
39 tableswap_cluster_info global() argument
40 listswap_cluster_info global() argument
[all...]
H A Dswap_table.h203 static inline void __swap_table_set(struct swap_cluster_info *ci,
213 static inline unsigned long __swap_table_xchg(struct swap_cluster_info *ci,
224 static inline unsigned long __swap_table_get(struct swap_cluster_info *ci,
235 static inline unsigned long swap_table_get(struct swap_cluster_info *ci,
H A Dswapfile.c57 struct swap_cluster_info *ci, struct list_head *list,
177 static bool swap_only_has_cache(struct swap_cluster_info *ci, in swap_only_has_cache()
203 struct swap_cluster_info *ci; in __try_to_reclaim_swap()
376 static inline bool cluster_is_empty(struct swap_cluster_info *info)
381 static inline bool cluster_is_discard(struct swap_cluster_info *info) in cluster_is_empty()
386 static inline bool cluster_table_is_alloced(struct swap_cluster_info *ci) in cluster_is_discard()
391 static inline bool cluster_is_usable(struct swap_cluster_info *ci, int order) in cluster_table_is_alloced()
403 struct swap_cluster_info *ci) in cluster_is_usable()
409 struct swap_cluster_info *ci) in cluster_index()
451 static void swap_cluster_assert_empty(struct swap_cluster_info *c in swap_cluster_free_table()
[all...]
H A Dswap_state.c140 void __swap_cache_add_folio(struct swap_cluster_info *ci, in __swap_cache_add_folio()
184 struct swap_cluster_info *ci; in swap_cache_add_folio()
234 void __swap_cache_del_folio(struct swap_cluster_info *ci, struct folio *folio,
294 struct swap_cluster_info *ci; in swap_cache_del_folio()
318 void __swap_cache_replace_folio(struct swap_cluster_info *ci,
H A Dmigrate.c575 struct swap_cluster_info *ci = NULL; in __folio_migrate_mapping()
H A Dhuge_memory.c3881 struct swap_cluster_info *ci = NULL; in __folio_freeze_and_split_unmapped()
H A Dshmem.c2129 struct swap_cluster_info *ci; in shmem_should_replace_folio()
H A Dvmscan.c711 struct swap_cluster_info *ci; in __remove_mapping()
/linux/include/linux/
H A Dswap.h256 struct swap_cluster_info *cluster_info; /* cluster info. Only for SSD */