Home
last modified time | relevance | path

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

/linux/mm/
H A Dswapfile.c52 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 Dswap.h39 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 Dpage_io.c32 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 Dswap_state.c262 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 Dzswap.c994 struct swap_info_struct *si; in zswap_writeback_entry()
H A Duserfaultfd.c1405 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 Dmemory.c4648 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 Dshmem.c2265 struct swap_info_struct *si; in shmem_swapin_folio()
/linux/include/linux/
H A Dswap.h242 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 Dswap_ops.h19 struct swap_info_struct *sis;
42 int swap_fs_activate(struct swap_info_struct *sis, const struct swap_ops *ops);
H A Diomap.h752 struct swap_info_struct;
754 int iomap_swapfile_activate(struct swap_info_struct *sis,
H A Dfs.h66 struct swap_info_struct;
438 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/exfat/
H A Diomap.c275 int exfat_iomap_swap_activate(struct swap_info_struct *sis, in exfat_iomap_swap_activate()
/linux/fs/ntfs/
H A Daops.c296 static int ntfs_swap_activate(struct swap_info_struct *sis, in ntfs_swap_activate()
/linux/fs/xfs/
H A Dxfs_aops.c636 struct swap_info_struct *sis, in xfs_vm_swap_activate()
/linux/fs/nfs/
H A Dfile.c609 static int nfs_swap_activate(struct swap_info_struct *sis, struct file *file, in nfs_swap_activate()
/linux/fs/f2fs/
H A Ddata.c4258 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 Dlocking.rst267 int (*swap_activate)(struct swap_info_struct *sis, struct file *f, sector_t *span)
H A Dvfs.rst777 int (*swap_activate)(struct swap_info_struct *sis, struct file *f, sector_t *span)
/linux/fs/btrfs/
H A Dinode.c10269 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 Dfile.c3475 static int cifs_swap_activate(struct swap_info_struct *sis, in cifs_swap_activate()
/linux/fs/ext4/
H A Dinode.c3941 static int ext4_iomap_swap_activate(struct swap_info_struct *sis, in ext4_iomap_swap_activate()