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
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_irq( in swap_cluster_get_and_lock_irq()
177 static inline void swap_cluster_unlock(struct swap_cluster_info *ci) in swap_cluster_unlock()
[all …]
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) in cluster_is_empty()
381 static inline bool cluster_is_discard(struct swap_cluster_info *info) in cluster_is_discard()
386 static inline bool cluster_table_is_alloced(struct swap_cluster_info *ci) in cluster_table_is_alloced()
391 static inline bool cluster_is_usable(struct swap_cluster_info *ci, int order) in cluster_is_usable()
403 struct swap_cluster_info *ci) in cluster_index()
409 struct swap_cluster_info *ci) in cluster_offset()
451 static void swap_cluster_assert_empty(struct swap_cluster_info *ci, in swap_cluster_assert_empty()
[all …]
H A Dswap_table.h203 static inline void __swap_table_set(struct swap_cluster_info *ci, in __swap_table_set()
213 static inline unsigned long __swap_table_xchg(struct swap_cluster_info *ci, in __swap_table_xchg()
224 static inline unsigned long __swap_table_get(struct swap_cluster_info *ci, in __swap_table_get()
235 static inline unsigned long swap_table_get(struct swap_cluster_info *ci, in swap_table_get()
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, in __swap_cache_del_folio()
294 struct swap_cluster_info *ci; in swap_cache_del_folio()
318 void __swap_cache_replace_folio(struct swap_cluster_info *ci, in __swap_cache_replace_folio()
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_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 */