Home
last modified time | relevance | path

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

/Linux-v5.15/include/linux/
Dfrontswap.h33 extern bool __frontswap_test(struct swap_info_struct *, pgoff_t);
48 static inline bool frontswap_test(struct swap_info_struct *sis, pgoff_t offset) in frontswap_test()
53 static inline void frontswap_map_set(struct swap_info_struct *p, in frontswap_map_set()
59 static inline unsigned long *frontswap_map_get(struct swap_info_struct *p) in frontswap_map_get()
71 static inline bool frontswap_test(struct swap_info_struct *sis, pgoff_t offset) in frontswap_test()
76 static inline void frontswap_map_set(struct swap_info_struct *p, in frontswap_map_set()
81 static inline unsigned long *frontswap_map_get(struct swap_info_struct *p) in frontswap_map_get()
Dswap.h246 struct swap_info_struct { struct
426 int add_swap_extent(struct swap_info_struct *sis, unsigned long start_page,
428 int generic_swapfile_activate(struct swap_info_struct *, struct file *,
509 extern struct swap_info_struct *page_swap_info(struct page *);
510 extern struct swap_info_struct *swp_swap_info(swp_entry_t entry);
516 extern struct swap_info_struct *get_swap_device(swp_entry_t entry);
519 static inline void put_swap_device(struct swap_info_struct *si) in put_swap_device()
531 static inline struct swap_info_struct *swp_swap_info(swp_entry_t entry) in swp_swap_info()
536 static inline struct swap_info_struct *get_swap_device(swp_entry_t entry) in get_swap_device()
541 static inline void put_swap_device(struct swap_info_struct *si) in put_swap_device()
Dswapfile.h11 extern struct swap_info_struct *swap_info[];
Diomap.h344 struct swap_info_struct;
346 int iomap_swapfile_activate(struct swap_info_struct *sis,
Dfs.h63 struct swap_info_struct;
418 int (*swap_activate)(struct swap_info_struct *sis, struct file *file,
/Linux-v5.15/mm/
Dswapfile.c48 static bool swap_count_continued(struct swap_info_struct *, pgoff_t,
50 static void free_swap_count_continuations(struct swap_info_struct *);
91 struct swap_info_struct *swap_info[MAX_SWAPFILES];
101 static struct swap_info_struct *swap_type_to_swap_info(int type) in swap_type_to_swap_info()
125 static int __try_to_reclaim_swap(struct swap_info_struct *si, in __try_to_reclaim_swap()
153 static inline struct swap_extent *first_se(struct swap_info_struct *sis) in first_se()
169 static int discard_swap(struct swap_info_struct *si) in discard_swap()
203 offset_to_swap_extent(struct swap_info_struct *sis, unsigned long offset) in offset_to_swap_extent()
224 struct swap_info_struct *sis = page_swap_info(page); in swap_page_sector()
239 static void discard_swap_cluster(struct swap_info_struct *si, in discard_swap_cluster()
[all …]
Dfrontswap.c121 struct swap_info_struct *si; in frontswap_register_ops()
196 struct swap_info_struct *sis = swap_info[type]; in __frontswap_init()
219 bool __frontswap_test(struct swap_info_struct *sis, in __frontswap_test()
228 static inline void __frontswap_set(struct swap_info_struct *sis, in __frontswap_set()
235 static inline void __frontswap_clear(struct swap_info_struct *sis, in __frontswap_clear()
254 struct swap_info_struct *sis = swap_info[type]; in __frontswap_store()
303 struct swap_info_struct *sis = swap_info[type]; in __frontswap_load()
337 struct swap_info_struct *sis = swap_info[type]; in __frontswap_invalidate_page()
359 struct swap_info_struct *sis = swap_info[type]; in __frontswap_invalidate_area()
378 struct swap_info_struct *si = NULL; in __frontswap_curr_pages()
[all …]
Dpage_io.c55 struct swap_info_struct *sis; in swap_slot_free_notify()
127 int generic_swapfile_activate(struct swap_info_struct *sis, in generic_swapfile_activate()
290 struct swap_info_struct *sis = page_swap_info(page); in __swap_writepage()
360 struct swap_info_struct *sis = page_swap_info(page); in swap_readpage()
444 struct swap_info_struct *sis = page_swap_info(page); in swap_set_page_dirty()
Dswap_state.c338 struct swap_info_struct *si; in lookup_swap_cache()
396 struct swap_info_struct *si; in find_get_incore_page()
421 struct swap_info_struct *si; in __read_swap_cache_async()
621 struct swap_info_struct *si = swp_swap_info(entry); in swap_cluster_readahead()
Dmemory.c3483 struct swap_info_struct *si = NULL; in do_swap_page()
/Linux-v5.15/fs/iomap/
Dswapfile.c16 struct swap_info_struct *sis;
142 int iomap_swapfile_activate(struct swap_info_struct *sis, in iomap_swapfile_activate()
/Linux-v5.15/fs/xfs/
Dxfs_aops.c534 struct swap_info_struct *sis, in xfs_iomap_swapfile_activate()
/Linux-v5.15/fs/nfs/
Dfile.c487 static int nfs_swap_activate(struct swap_info_struct *sis, struct file *file, in nfs_swap_activate()
/Linux-v5.15/fs/f2fs/
Ddata.c3981 static int check_swap_activate(struct swap_info_struct *sis, in check_swap_activate()
4088 static int f2fs_swap_activate(struct swap_info_struct *sis, struct file *file, in f2fs_swap_activate()
4131 static int f2fs_swap_activate(struct swap_info_struct *sis, struct file *file, in f2fs_swap_activate()
/Linux-v5.15/fs/zonefs/
Dsuper.c168 static int zonefs_swap_activate(struct swap_info_struct *sis, in zonefs_swap_activate()
/Linux-v5.15/fs/btrfs/
Dinode.c10580 static int btrfs_add_swap_extent(struct swap_info_struct *sis, in btrfs_add_swap_extent()
10619 static int btrfs_swap_activate(struct swap_info_struct *sis, struct file *file, in btrfs_swap_activate()
10861 static int btrfs_swap_activate(struct swap_info_struct *sis, struct file *file, in btrfs_swap_activate()
/Linux-v5.15/fs/cifs/
Dfile.c4913 static int cifs_swap_activate(struct swap_info_struct *sis, in cifs_swap_activate()
/Linux-v5.15/fs/ext4/
Dinode.c3583 static int ext4_iomap_swap_activate(struct swap_info_struct *sis, in ext4_iomap_swap_activate()