Home
last modified time | relevance | path

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

/linux-6.14.4/mm/
Dswapfile.c53 static bool swap_count_continued(struct swap_info_struct *, pgoff_t,
55 static void free_swap_count_continuations(struct swap_info_struct *);
56 static void swap_entry_range_free(struct swap_info_struct *si,
59 static void swap_range_alloc(struct swap_info_struct *si,
62 static struct swap_cluster_info *lock_cluster(struct swap_info_struct *si,
109 static struct swap_info_struct *swap_info[MAX_SWAPFILES];
119 static struct swap_info_struct *swap_type_to_swap_info(int type) in swap_type_to_swap_info()
147 static long swap_usage_in_pages(struct swap_info_struct *si) in swap_usage_in_pages()
164 static bool swap_is_has_cache(struct swap_info_struct *si, in swap_is_has_cache()
179 static bool swap_is_last_map(struct swap_info_struct *si, in swap_is_last_map()
[all …]
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()
378 struct swap_info_struct *sis = swp_swap_info(folio->swap); in swap_writepage_fs()
414 struct writeback_control *wbc, struct swap_info_struct *sis) in swap_writepage_bdev_sync()
435 struct writeback_control *wbc, struct swap_info_struct *sis) in swap_writepage_bdev_async()
455 struct swap_info_struct *sis = swp_swap_info(folio->swap); in __swap_writepage()
546 struct swap_info_struct *sis = swp_swap_info(folio->swap); in swap_read_folio_fs()
579 struct swap_info_struct *sis) in swap_read_folio_bdev_sync()
601 struct swap_info_struct *sis) in swap_read_folio_bdev_async()
[all …]
Dswap.h62 void swapcache_clear(struct swap_info_struct *si, swp_entry_t entry, int nr);
92 struct swap_info_struct *sis = swp_swap_info(entry); in swap_zeromap_batch()
149 static inline void swapcache_clear(struct swap_info_struct *si, swp_entry_t entry, int nr) in swapcache_clear()
Dswap_state.c407 struct swap_info_struct *si; in filemap_get_incore_folio()
435 struct swap_info_struct *si; in __read_swap_cache_async()
663 struct swap_info_struct *si = swp_swap_info(entry); in swap_cluster_readahead()
Duserfaultfd.c1153 struct swap_info_struct *si = NULL; in move_pages_pte()
Dmemory.c4125 struct swap_info_struct *si = swp_swap_info(entry); in non_swapcache_batch()
4302 struct swap_info_struct *si = NULL; in do_swap_page()
Dshmem.c2252 struct swap_info_struct *si; in shmem_swapin_folio()
/linux-6.14.4/include/linux/
Dswap.h301 struct swap_info_struct { struct
456 int add_swap_extent(struct swap_info_struct *sis, unsigned long start_page,
458 int generic_swapfile_activate(struct swap_info_struct *, struct file *,
504 extern int swap_swapcount(struct swap_info_struct *si, swp_entry_t entry);
506 struct swap_info_struct *swp_swap_info(swp_entry_t entry);
510 extern struct swap_info_struct *get_swap_device(swp_entry_t entry);
513 static inline void put_swap_device(struct swap_info_struct *si) in put_swap_device()
519 static inline struct swap_info_struct *swp_swap_info(swp_entry_t entry) in swp_swap_info()
524 static inline struct swap_info_struct *get_swap_device(swp_entry_t entry) in get_swap_device()
529 static inline void put_swap_device(struct swap_info_struct *si) in put_swap_device()
[all …]
Diomap.h448 struct swap_info_struct;
450 int iomap_swapfile_activate(struct swap_info_struct *sis,
Dfs.h70 struct swap_info_struct;
472 int (*swap_activate)(struct swap_info_struct *sis, struct file *file,
/linux-6.14.4/fs/iomap/
Dswapfile.c16 struct swap_info_struct *sis;
142 int iomap_swapfile_activate(struct swap_info_struct *sis, in iomap_swapfile_activate()
/linux-6.14.4/fs/xfs/
Dxfs_aops.c533 struct swap_info_struct *sis, in xfs_vm_swap_activate()
/linux-6.14.4/fs/zonefs/
Dfile.c160 static int zonefs_swap_activate(struct swap_info_struct *sis, in zonefs_swap_activate()
/linux-6.14.4/fs/nfs/
Dfile.c518 static int nfs_swap_activate(struct swap_info_struct *sis, struct file *file, in nfs_swap_activate()
/linux-6.14.4/fs/f2fs/
Ddata.c3931 static int check_swap_activate(struct swap_info_struct *sis, in check_swap_activate()
4043 static int f2fs_swap_activate(struct swap_info_struct *sis, struct file *file, in f2fs_swap_activate()
4092 static int f2fs_swap_activate(struct swap_info_struct *sis, struct file *file, in f2fs_swap_activate()
/linux-6.14.4/Documentation/filesystems/
Dlocking.rst273 int (*swap_activate)(struct swap_info_struct *sis, struct file *f, sector_t *span)
Dvfs.rst827 int (*swap_activate)(struct swap_info_struct *sis, struct file *f, sector_t *span)
/linux-6.14.4/fs/btrfs/
Dinode.c9813 static int btrfs_add_swap_extent(struct swap_info_struct *sis, in btrfs_add_swap_extent()
9862 static int btrfs_swap_activate(struct swap_info_struct *sis, struct file *file, in btrfs_swap_activate()
10188 static int btrfs_swap_activate(struct swap_info_struct *sis, struct file *file, in btrfs_swap_activate()
/linux-6.14.4/fs/smb/client/
Dfile.c3168 static int cifs_swap_activate(struct swap_info_struct *sis, in cifs_swap_activate()
/linux-6.14.4/fs/ext4/
Dinode.c3591 static int ext4_iomap_swap_activate(struct swap_info_struct *sis, in ext4_iomap_swap_activate()