Home
last modified time | relevance | path

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

/linux/mm/
H A Dswapfile.c52 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,
100 * swap_info_struct changes between not-full/full, it needs to
101 * add/remove itself to/from this list, but the swap_info_struct->lock
103 * before any swap_info_struct->lock.
108 static struct swap_info_struct *swap_info[MAX_SWAPFILES];
119 struct swap_info_struct *s
[all...]
H A Dswap.h64 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 Dswap_state.c340 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 Duserfaultfd.c1088 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 Dzswap.c1072 struct swap_info_struct *si; in zswap_writeback_entry()
H A Dshmem.c2323 struct swap_info_struct *si; in shmem_swapin_folio()
H A Dmemory.c4460 struct swap_info_struct *si = NULL; in do_swap_page()
/linux/include/linux/
H A Dswap.h297 struct swap_info_struct { struct
473 int add_swap_extent(struct swap_info_struct *sis, unsigned long start_page,
475 int generic_swapfile_activate(struct swap_info_struct *, struct file *,
518 extern bool swap_entry_swapped(struct swap_info_struct *si, swp_entry_t entry);
520 struct swap_info_struct *swp_swap_info(swp_entry_t entry);
524 extern struct swap_info_struct *get_swap_device(swp_entry_t entry);
527 static inline void put_swap_device(struct swap_info_struct *si) in put_swap_device()
533 static inline struct swap_info_struct *swp_swap_info(swp_entry_t entry) in swp_swap_info()
538 static inline struct swap_info_struct *get_swap_device(swp_entry_t entry) in get_swap_device()
543 static inline void put_swap_device(struct swap_info_struct *si) in put_swap_device()
[all …]
H A Diomap.h532 struct swap_info_struct;
534 int iomap_swapfile_activate(struct swap_info_struct *sis,
H A Dfs.h71 struct swap_info_struct;
476 int (*swap_activate)(struct swap_info_struct *sis, struct file *file,
/linux/fs/iomap/
H A Dswapfile.c13 struct swap_info_struct *sis;
140 int iomap_swapfile_activate(struct swap_info_struct *sis, in iomap_swapfile_activate()
/linux/fs/xfs/
H A Dxfs_aops.c757 struct swap_info_struct *sis, in xfs_vm_swap_activate()
/linux/fs/zonefs/
H A Dfile.c169 static int zonefs_swap_activate(struct swap_info_struct *sis, in zonefs_swap_activate()
/linux/fs/nfs/
H A Dfile.c557 static int nfs_swap_activate(struct swap_info_struct *sis, struct file *file, in nfs_swap_activate()
/linux/fs/f2fs/
H A Ddata.c3912 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 Dlocking.rst272 int (*swap_activate)(struct swap_info_struct *sis, struct file *f, sector_t *span)
H A Dvfs.rst845 int (*swap_activate)(struct swap_info_struct *sis, struct file *f, sector_t *span)
/linux/fs/btrfs/
H A Dinode.c10002 static int btrfs_add_swap_extent(struct swap_info_struct *sis, in btrfs_add_swap_extent()
10051 static int btrfs_swap_activate(struct swap_info_struct *sis, struct file *file, in btrfs_swap_activate()
10377 static int btrfs_swap_activate(struct swap_info_struct *sis, struct file *file, in btrfs_swap_activate()
/linux/fs/smb/client/
H A Dfile.c3199 static int cifs_swap_activate(struct swap_info_struct *sis, in cifs_swap_activate()
/linux/fs/ext4/
H A Dinode.c4004 static int ext4_iomap_swap_activate(struct swap_info_struct *sis, in ext4_iomap_swap_activate()