/linux/mm/ |
H A D | swapfile.c | 52 static bool swap_count_continued(struct swap_info_struct *, pgoff_t, 54 static void free_swap_count_continuations(struct swap_info_struct *); 55 static void swap_entries_free(struct swap_info_struct *si, 58 static void swap_range_alloc(struct swap_info_struct *si, 61 static struct swap_cluster_info *lock_cluster(struct swap_info_struct *si, 108 static struct swap_info_struct *swap_info[MAX_SWAPFILES]; 119 struct swap_info_struct *si[SWAP_NR_ORDERS]; 130 static struct swap_info_struct *swap_type_to_swap_info(int type) in swap_type_to_swap_info() 158 static long swap_usage_in_pages(struct swap_info_struct *si) in swap_usage_in_pages() 173 static bool swap_only_has_cache(struct swap_info_struct *si, in swap_only_has_cache() [all …]
|
H A D | page_io.c | 78 int generic_swapfile_activate(struct swap_info_struct *sis, in generic_swapfile_activate() 207 struct swap_info_struct *sis = swp_swap_info(folio->swap); in swap_zeromap_folio_set() 226 struct swap_info_struct *sis = swp_swap_info(folio->swap); in swap_zeromap_folio_clear() 377 struct swap_info_struct *sis = swp_swap_info(folio->swap); in swap_writepage_fs() 411 struct swap_info_struct *sis) in swap_writepage_bdev_sync() 431 struct swap_info_struct *sis) in swap_writepage_bdev_async() 449 struct swap_info_struct *sis = swp_swap_info(folio->swap); in __swap_writepage() 540 struct swap_info_struct *sis = swp_swap_info(folio->swap); in swap_read_folio_fs() 573 struct swap_info_struct *sis) in swap_read_folio_bdev_sync() 595 struct swap_info_struct *sis) in swap_read_folio_bdev_async() [all …]
|
H A D | swap.h | 64 void swapcache_clear(struct swap_info_struct *si, swp_entry_t entry, int nr); 94 struct swap_info_struct *sis = swp_swap_info(entry); in swap_zeromap_batch() 113 struct swap_info_struct *si = swp_swap_info(entry); in non_swapcache_batch() 171 static inline void swapcache_clear(struct swap_info_struct *si, swp_entry_t entry, int nr) in swapcache_clear()
|
H A D | swap_state.c | 340 struct swap_info_struct *si; in filemap_get_incore_folio() 368 struct swap_info_struct *si = swp_swap_info(entry); in __read_swap_cache_async() 484 struct swap_info_struct *si; in read_swap_cache_async() 593 struct swap_info_struct *si = swp_swap_info(entry); in swap_cluster_readahead()
|
H A D | userfaultfd.c | 1088 struct swap_info_struct *si, swp_entry_t entry) in move_swap_pte() 1186 struct swap_info_struct *si = NULL; in move_pages_pte()
|
H A D | zswap.c | 1072 struct swap_info_struct *si; in zswap_writeback_entry()
|
H A D | shmem.c | 2323 struct swap_info_struct *si; in shmem_swapin_folio()
|
H A D | memory.c | 4460 struct swap_info_struct *si = NULL; in do_swap_page()
|
/linux/include/linux/ |
H A D | swap.h | 297 struct swap_info_struct { struct 463 int add_swap_extent(struct swap_info_struct *sis, unsigned long start_page, 465 int generic_swapfile_activate(struct swap_info_struct *, struct file *, 508 extern bool swap_entry_swapped(struct swap_info_struct *si, swp_entry_t entry); 510 struct swap_info_struct *swp_swap_info(swp_entry_t entry); 514 extern struct swap_info_struct *get_swap_device(swp_entry_t entry); 517 static inline void put_swap_device(struct swap_info_struct *si) in put_swap_device() 523 static inline struct swap_info_struct *swp_swap_info(swp_entry_t entry) in swp_swap_info() 528 static inline struct swap_info_struct *get_swap_device(swp_entry_t entry) in get_swap_device() 533 static inline void put_swap_device(struct swap_info_struct *si) in put_swap_device() [all …]
|
H A D | iomap.h | 532 struct swap_info_struct; 534 int iomap_swapfile_activate(struct swap_info_struct *sis,
|
H A D | fs.h | 71 struct swap_info_struct; 475 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/zonefs/ |
H A D | file.c | 169 static int zonefs_swap_activate(struct swap_info_struct *sis, in zonefs_swap_activate()
|
/linux/fs/nfs/ |
H A D | file.c | 523 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 | 3912 static int check_swap_activate(struct swap_info_struct *sis, in check_swap_activate() 4024 static int f2fs_swap_activate(struct swap_info_struct *sis, struct file *file, in f2fs_swap_activate() 4073 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 | 272 int (*swap_activate)(struct swap_info_struct *sis, struct file *f, sector_t *span)
|
H A D | vfs.rst | 845 int (*swap_activate)(struct swap_info_struct *sis, struct file *f, sector_t *span)
|
/linux/fs/btrfs/ |
H A D | inode.c | 9984 static int btrfs_add_swap_extent(struct swap_info_struct *sis, in btrfs_add_swap_extent() 10033 static int btrfs_swap_activate(struct swap_info_struct *sis, struct file *file, in btrfs_swap_activate() 10359 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 | 3183 static int cifs_swap_activate(struct swap_info_struct *sis, in cifs_swap_activate()
|
/linux/fs/ext4/ |
H A D | inode.c | 4004 static int ext4_iomap_swap_activate(struct swap_info_struct *sis, in ext4_iomap_swap_activate()
|