Home
last modified time | relevance | path

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

/linux-6.1.9/mm/
Dswapfile.c50 static bool swap_count_continued(struct swap_info_struct *, pgoff_t,
52 static void free_swap_count_continuations(struct swap_info_struct *);
97 struct swap_info_struct *swap_info[MAX_SWAPFILES];
107 static struct swap_info_struct *swap_type_to_swap_info(int type) in swap_type_to_swap_info()
131 static int __try_to_reclaim_swap(struct swap_info_struct *si, in __try_to_reclaim_swap()
159 static inline struct swap_extent *first_se(struct swap_info_struct *sis) in first_se()
175 static int discard_swap(struct swap_info_struct *si) in discard_swap()
209 offset_to_swap_extent(struct swap_info_struct *sis, unsigned long offset) in offset_to_swap_extent()
230 struct swap_info_struct *sis = page_swap_info(page); in swap_page_sector()
245 static void discard_swap_cluster(struct swap_info_struct *si, in discard_swap_cluster()
[all …]
Dfrontswap.c112 struct swap_info_struct *sis = swap_info[type]; in frontswap_init()
134 static bool __frontswap_test(struct swap_info_struct *sis, in __frontswap_test()
142 static inline void __frontswap_set(struct swap_info_struct *sis, in __frontswap_set()
149 static inline void __frontswap_clear(struct swap_info_struct *sis, in __frontswap_clear()
168 struct swap_info_struct *sis = swap_info[type]; in __frontswap_store()
207 struct swap_info_struct *sis = swap_info[type]; in __frontswap_load()
230 struct swap_info_struct *sis = swap_info[type]; in __frontswap_invalidate_page()
249 struct swap_info_struct *sis = swap_info[type]; in __frontswap_invalidate_area()
Dpage_io.c80 int generic_swapfile_activate(struct swap_info_struct *sis, in generic_swapfile_activate()
298 struct swap_info_struct *sis = page_swap_info(page); in swap_writepage_fs()
340 struct swap_info_struct *sis = page_swap_info(page); in __swap_writepage()
414 struct swap_info_struct *sis = page_swap_info(page); in swap_readpage_fs()
453 struct swap_info_struct *sis = page_swap_info(page); in swap_readpage()
Dswap_state.c332 struct swap_info_struct *si; in swap_cache_get_folio()
388 struct swap_info_struct *si; in find_get_incore_page()
416 struct swap_info_struct *si; in __read_swap_cache_async()
618 struct swap_info_struct *si = swp_swap_info(entry); in swap_cluster_readahead()
Dmemory.c3730 struct swap_info_struct *si = NULL; in do_swap_page()
/linux-6.1.9/include/linux/
Dfrontswap.h34 static inline void frontswap_map_set(struct swap_info_struct *p, in frontswap_map_set()
40 static inline unsigned long *frontswap_map_get(struct swap_info_struct *p) in frontswap_map_get()
52 static inline void frontswap_map_set(struct swap_info_struct *p, in frontswap_map_set()
57 static inline unsigned long *frontswap_map_get(struct swap_info_struct *p) in frontswap_map_get()
Dswap.h275 struct swap_info_struct { struct
461 int add_swap_extent(struct swap_info_struct *sis, unsigned long start_page,
463 int generic_swapfile_activate(struct swap_info_struct *, struct file *,
511 extern struct swap_info_struct *page_swap_info(struct page *);
512 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()
525 static inline struct swap_info_struct *swp_swap_info(swp_entry_t entry) in swp_swap_info()
530 static inline struct swap_info_struct *get_swap_device(swp_entry_t entry) in get_swap_device()
535 static inline void put_swap_device(struct swap_info_struct *si) in put_swap_device()
[all …]
Dswapfile.h9 extern struct swap_info_struct *swap_info[];
Diomap.h364 struct swap_info_struct;
366 int iomap_swapfile_activate(struct swap_info_struct *sis,
Dfs.h66 struct swap_info_struct;
394 int (*swap_activate)(struct swap_info_struct *sis, struct file *file,
/linux-6.1.9/fs/iomap/
Dswapfile.c16 struct swap_info_struct *sis;
142 int iomap_swapfile_activate(struct swap_info_struct *sis, in iomap_swapfile_activate()
/linux-6.1.9/fs/xfs/
Dxfs_aops.c555 struct swap_info_struct *sis, in xfs_iomap_swapfile_activate()
/linux-6.1.9/fs/nfs/
Dfile.c475 static int nfs_swap_activate(struct swap_info_struct *sis, struct file *file, in nfs_swap_activate()
/linux-6.1.9/fs/f2fs/
Ddata.c3856 static int check_swap_activate(struct swap_info_struct *sis, in check_swap_activate()
3963 static int f2fs_swap_activate(struct swap_info_struct *sis, struct file *file, in f2fs_swap_activate()
4008 static int f2fs_swap_activate(struct swap_info_struct *sis, struct file *file, in f2fs_swap_activate()
/linux-6.1.9/fs/zonefs/
Dsuper.c250 static int zonefs_swap_activate(struct swap_info_struct *sis, in zonefs_swap_activate()
/linux-6.1.9/Documentation/filesystems/
Dlocking.rst261 int (*swap_activate)(struct swap_info_struct *sis, struct file *f, sector_t *span)
Dvfs.rst753 int (*swap_activate)(struct swap_info_struct *sis, struct file *f, sector_t *span)
/linux-6.1.9/fs/btrfs/
Dinode.c10915 static int btrfs_add_swap_extent(struct swap_info_struct *sis, in btrfs_add_swap_extent()
10965 static int btrfs_swap_activate(struct swap_info_struct *sis, struct file *file, in btrfs_swap_activate()
11222 static int btrfs_swap_activate(struct swap_info_struct *sis, struct file *file, in btrfs_swap_activate()
/linux-6.1.9/fs/cifs/
Dfile.c5157 static int cifs_swap_activate(struct swap_info_struct *sis, in cifs_swap_activate()
/linux-6.1.9/fs/ext4/
Dinode.c3646 static int ext4_iomap_swap_activate(struct swap_info_struct *sis, in ext4_iomap_swap_activate()