| /linux/mm/ |
| H A D | swapfile.c | 52 static void swap_range_alloc(struct swap_info_struct *si, 55 static void move_cluster(struct swap_info_struct *si, 107 struct swap_info_struct *swap_info[MAX_SWAPFILES]; 121 struct swap_info_struct *si[SWAP_NR_ORDERS]; 133 static struct swap_info_struct *swap_type_to_info(int type) in swap_type_to_info() 141 static struct swap_info_struct *swap_entry_to_info(swp_entry_t entry) in swap_entry_to_info() 161 static long swap_usage_in_pages(struct swap_info_struct *si) in swap_usage_in_pages() 198 static int __try_to_reclaim_swap(struct swap_info_struct *si, in __try_to_reclaim_swap() 262 static inline struct swap_extent *first_se(struct swap_info_struct *sis) in first_se() 278 static int discard_swap(struct swap_info_struct *si) in discard_swap() [all …]
|
| H A D | swap.h | 39 extern struct swap_info_struct *swap_info[]; 108 static inline struct swap_info_struct *__swap_type_to_info(int type) in __swap_type_to_info() 110 struct swap_info_struct *si; in __swap_type_to_info() 117 static inline struct swap_info_struct *__swap_entry_to_info(swp_entry_t entry) in __swap_entry_to_info() 123 struct swap_info_struct *si, pgoff_t offset) in __swap_offset_to_cluster() 137 struct swap_info_struct *si, unsigned long offset, bool irq) in __swap_cluster_lock() 168 struct swap_info_struct *si, unsigned long offset) in swap_cluster_lock() 251 extern void __swap_cluster_free_entries(struct swap_info_struct *si, 327 void swapcache_clear(struct swap_info_struct *si, swp_entry_t entry, int nr); 361 static inline struct swap_info_struct *__swap_entry_to_info(swp_entry_t entry) in __swap_entry_to_info()
|
| H A D | page_io.c | 32 int generic_swapfile_activate(struct swap_info_struct *sis, in generic_swapfile_activate() 322 struct swap_info_struct *sis = __swap_entry_to_info(folio->swap); in swap_can_merge() 334 struct swap_info_struct *sis = __swap_entry_to_info(folio->swap); in swap_add_folio() 454 struct swap_info_struct *sis = __swap_entry_to_info(folio->swap); in swap_read_folio() 677 int swap_fs_activate(struct swap_info_struct *sis, const struct swap_ops *ops) in swap_fs_activate()
|
| H A D | swap_state.c | 262 struct swap_info_struct *si; in __swap_cache_do_del_folio() 713 struct swap_info_struct *si; in read_swap_cache_async() 828 struct swap_info_struct *si = __swap_entry_to_info(entry); in swap_cluster_readahead() 934 struct swap_info_struct *si = NULL; in swap_vma_readahead()
|
| H A D | zswap.c | 994 struct swap_info_struct *si; in zswap_writeback_entry()
|
| H A D | userfaultfd.c | 1405 struct swap_info_struct *si, swp_entry_t entry) in move_swap_pte() 1507 struct swap_info_struct *si = NULL; in move_pages_ptes()
|
| H A D | memory.c | 4648 static inline bool should_try_to_free_swap(struct swap_info_struct *si, in should_try_to_free_swap() 4886 struct swap_info_struct *si = NULL; in do_swap_page()
|
| H A D | shmem.c | 2265 struct swap_info_struct *si; in shmem_swapin_folio()
|
| /linux/include/linux/ |
| H A D | swap.h | 242 struct swap_info_struct { struct 344 int add_swap_extent(struct swap_info_struct *sis, unsigned long start_page, 346 int generic_swapfile_activate(struct swap_info_struct *, struct file *, 381 extern bool swap_entry_swapped(struct swap_info_struct *si, swp_entry_t entry); 383 extern struct swap_info_struct *get_swap_device(swp_entry_t entry); 409 static inline void put_swap_device(struct swap_info_struct *si) in put_swap_device() 415 static inline struct swap_info_struct *get_swap_device(swp_entry_t entry) in get_swap_device() 420 static inline void put_swap_device(struct swap_info_struct *si) in put_swap_device() 454 static inline bool swap_entry_swapped(struct swap_info_struct *si, swp_entry_t entry) in swap_entry_swapped() 469 static inline int add_swap_extent(struct swap_info_struct *sis, in add_swap_extent()
|
| H A D | swap_ops.h | 19 struct swap_info_struct *sis; 42 int swap_fs_activate(struct swap_info_struct *sis, const struct swap_ops *ops);
|
| H A D | iomap.h | 752 struct swap_info_struct; 754 int iomap_swapfile_activate(struct swap_info_struct *sis,
|
| H A D | fs.h | 66 struct swap_info_struct; 438 int (*swap_activate)(struct swap_info_struct *sis, struct file *file,
|
| /linux/fs/iomap/ |
| H A D | swapfile.c | 13 struct swap_info_struct *sis; 140 int iomap_swapfile_activate(struct swap_info_struct *sis, in iomap_swapfile_activate()
|
| /linux/fs/exfat/ |
| H A D | iomap.c | 275 int exfat_iomap_swap_activate(struct swap_info_struct *sis, in exfat_iomap_swap_activate()
|
| /linux/fs/ntfs/ |
| H A D | aops.c | 296 static int ntfs_swap_activate(struct swap_info_struct *sis, in ntfs_swap_activate()
|
| /linux/fs/xfs/ |
| H A D | xfs_aops.c | 636 struct swap_info_struct *sis, in xfs_vm_swap_activate()
|
| /linux/fs/nfs/ |
| H A D | file.c | 609 static int nfs_swap_activate(struct swap_info_struct *sis, struct file *file, in nfs_swap_activate()
|
| /linux/fs/f2fs/ |
| H A D | data.c | 4258 static int check_swap_activate(struct swap_info_struct *sis, in check_swap_activate() 4370 static int f2fs_swap_activate(struct swap_info_struct *sis, struct file *file, in f2fs_swap_activate() 4419 static int f2fs_swap_activate(struct swap_info_struct *sis, struct file *file, in f2fs_swap_activate()
|
| /linux/Documentation/filesystems/ |
| H A D | locking.rst | 267 int (*swap_activate)(struct swap_info_struct *sis, struct file *f, sector_t *span)
|
| H A D | vfs.rst | 777 int (*swap_activate)(struct swap_info_struct *sis, struct file *f, sector_t *span)
|
| /linux/fs/btrfs/ |
| H A D | inode.c | 10269 static int btrfs_add_swap_extent(struct swap_info_struct *sis, in btrfs_add_swap_extent() 10318 static int btrfs_swap_activate(struct swap_info_struct *sis, struct file *file, in btrfs_swap_activate() 10657 static int btrfs_swap_activate(struct swap_info_struct *sis, struct file *file, in btrfs_swap_activate()
|
| /linux/fs/smb/client/ |
| H A D | file.c | 3475 static int cifs_swap_activate(struct swap_info_struct *sis, in cifs_swap_activate()
|
| /linux/fs/ext4/ |
| H A D | inode.c | 3941 static int ext4_iomap_swap_activate(struct swap_info_struct *sis, in ext4_iomap_swap_activate()
|