Home
last modified time | relevance | path

Searched refs:swap_info_struct (Results 1 – 13 of 13) sorted by relevance

/Linux-v4.19/include/linux/
Dfrontswap.h26 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()
Dswap.h231 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()
Dswapfile.h11 extern struct swap_info_struct *swap_info[];
Diomap.h166 struct swap_info_struct;
168 int iomap_swapfile_activate(struct swap_info_struct *sis,
Dfs.h58 struct swap_info_struct;
387 int (*swap_activate)(struct swap_info_struct *sis, struct file *file,
/Linux-v4.19/mm/
Dswapfile.c47 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 …]
Dfrontswap.c118 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 …]
Dpage_io.c77 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()
Dswap_state.c574 struct swap_info_struct *si = swp_swap_info(entry); in swap_cluster_readahead()
Dmemory.c2942 struct swap_info_struct *si = swp_swap_info(entry); in do_swap_page()
/Linux-v4.19/fs/nfs/
Dfile.c492 static int nfs_swap_activate(struct swap_info_struct *sis, struct file *file, in nfs_swap_activate()
/Linux-v4.19/fs/xfs/
Dxfs_aops.c1011 struct swap_info_struct *sis, in xfs_iomap_swapfile_activate()
/Linux-v4.19/fs/
Diomap.c1913 struct swap_info_struct *sis;
2031 int iomap_swapfile_activate(struct swap_info_struct *sis, in iomap_swapfile_activate()