Searched refs:swap_info_struct (Results 1 – 13 of 13) sorted by relevance
/Linux-v4.19/include/linux/ |
D | frontswap.h | 26 extern bool __frontswap_test(struct swap_info_struct *, pgoff_t); 41 static inline bool frontswap_test(struct swap_info_struct *sis, pgoff_t offset) in frontswap_test() 46 static inline void frontswap_map_set(struct swap_info_struct *p, in frontswap_map_set() 52 static inline unsigned long *frontswap_map_get(struct swap_info_struct *p) in frontswap_map_get() 64 static inline bool frontswap_test(struct swap_info_struct *sis, pgoff_t offset) in frontswap_test() 69 static inline void frontswap_map_set(struct swap_info_struct *p, in frontswap_map_set() 74 static inline unsigned long *frontswap_map_get(struct swap_info_struct *p) in frontswap_map_get()
|
D | swap.h | 231 struct swap_info_struct { struct 393 int add_swap_extent(struct swap_info_struct *sis, unsigned long start_page, 395 int generic_swapfile_activate(struct swap_info_struct *, struct file *, 463 extern int __swap_count(struct swap_info_struct *si, swp_entry_t entry); 466 extern struct swap_info_struct *page_swap_info(struct page *); 467 extern struct swap_info_struct *swp_swap_info(swp_entry_t entry); 481 static inline struct swap_info_struct *swp_swap_info(swp_entry_t entry) in swp_swap_info() 578 static inline int __swap_count(struct swap_info_struct *si, swp_entry_t entry) in __swap_count()
|
D | swapfile.h | 11 extern struct swap_info_struct *swap_info[];
|
D | iomap.h | 166 struct swap_info_struct; 168 int iomap_swapfile_activate(struct swap_info_struct *sis,
|
D | fs.h | 58 struct swap_info_struct; 387 int (*swap_activate)(struct swap_info_struct *sis, struct file *file,
|
/Linux-v4.19/mm/ |
D | swapfile.c | 47 static bool swap_count_continued(struct swap_info_struct *, pgoff_t, 49 static void free_swap_count_continuations(struct swap_info_struct *); 91 struct swap_info_struct *swap_info[MAX_SWAPFILES]; 108 __try_to_reclaim_swap(struct swap_info_struct *si, unsigned long offset) in __try_to_reclaim_swap() 136 static int discard_swap(struct swap_info_struct *si) in discard_swap() 173 static void discard_swap_cluster(struct swap_info_struct *si, in discard_swap_cluster() 290 static inline struct swap_cluster_info *lock_cluster(struct swap_info_struct *si, in lock_cluster() 314 struct swap_info_struct *si, unsigned long offset) in lock_cluster_or_swap_info() 327 static inline void unlock_cluster_or_swap_info(struct swap_info_struct *si, in unlock_cluster_or_swap_info() 392 static void swap_cluster_schedule_discard(struct swap_info_struct *si, in swap_cluster_schedule_discard() [all …]
|
D | frontswap.c | 118 struct swap_info_struct *si; in frontswap_register_ops() 193 struct swap_info_struct *sis = swap_info[type]; in __frontswap_init() 216 bool __frontswap_test(struct swap_info_struct *sis, in __frontswap_test() 225 static inline void __frontswap_set(struct swap_info_struct *sis, in __frontswap_set() 232 static inline void __frontswap_clear(struct swap_info_struct *sis, in __frontswap_clear() 251 struct swap_info_struct *sis = swap_info[type]; in __frontswap_store() 300 struct swap_info_struct *sis = swap_info[type]; in __frontswap_load() 334 struct swap_info_struct *sis = swap_info[type]; in __frontswap_invalidate_page() 356 struct swap_info_struct *sis = swap_info[type]; in __frontswap_invalidate_area() 375 struct swap_info_struct *si = NULL; in __frontswap_curr_pages() [all …]
|
D | page_io.c | 77 struct swap_info_struct *sis; in swap_slot_free_notify() 147 int generic_swapfile_activate(struct swap_info_struct *sis, in generic_swapfile_activate() 283 struct swap_info_struct *sis = page_swap_info(page); in __swap_writepage() 355 struct swap_info_struct *sis = page_swap_info(page); in swap_readpage() 424 struct swap_info_struct *sis = page_swap_info(page); in swap_set_page_dirty()
|
D | swap_state.c | 574 struct swap_info_struct *si = swp_swap_info(entry); in swap_cluster_readahead()
|
D | memory.c | 2942 struct swap_info_struct *si = swp_swap_info(entry); in do_swap_page()
|
/Linux-v4.19/fs/nfs/ |
D | file.c | 492 static int nfs_swap_activate(struct swap_info_struct *sis, struct file *file, in nfs_swap_activate()
|
/Linux-v4.19/fs/xfs/ |
D | xfs_aops.c | 1011 struct swap_info_struct *sis, in xfs_iomap_swapfile_activate()
|
/Linux-v4.19/fs/ |
D | iomap.c | 1913 struct swap_info_struct *sis; 2031 int iomap_swapfile_activate(struct swap_info_struct *sis, in iomap_swapfile_activate()
|