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,
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 Dpage_io.c78 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 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
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 Diomap.h532 struct swap_info_struct;
534 int iomap_swapfile_activate(struct swap_info_struct *sis,
H A Dfs.h71 struct swap_info_struct;
475 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/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.c523 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.c9984 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 Dfile.c3183 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()