Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/mm/
H A Dswapfile.c48 static bool swap_count_continued(struct swap_info_struct *, pgoff_t,
50 static void free_swap_count_continuations(struct swap_info_struct *);
92 struct swap_info_struct *swap_info[MAX_SWAPFILES];
102 struct swap_info_struct *swap_type_to_swap_info(int type) in swap_type_to_swap_info()
128 static int __try_to_reclaim_swap(struct swap_info_struct *si, in __try_to_reclaim_swap()
156 static inline struct swap_extent *first_se(struct swap_info_struct *sis) in first_se()
172 static int discard_swap(struct swap_info_struct *si) in discard_swap()
206 offset_to_swap_extent(struct swap_info_struct *sis, unsigned long offset) in offset_to_swap_extent()
227 struct swap_info_struct *sis = page_swap_info(page); in swap_page_sector()
242 static void discard_swap_cluster(struct swap_info_struct *si, in discard_swap_cluster()
[all …]
H A Dfrontswap.c117 struct swap_info_struct *si; in frontswap_register_ops()
192 struct swap_info_struct *sis = swap_info[type]; in __frontswap_init()
215 bool __frontswap_test(struct swap_info_struct *sis, in __frontswap_test()
224 static inline void __frontswap_set(struct swap_info_struct *sis, in __frontswap_set()
231 static inline void __frontswap_clear(struct swap_info_struct *sis, in __frontswap_clear()
250 struct swap_info_struct *sis = swap_info[type]; in __frontswap_store()
299 struct swap_info_struct *sis = swap_info[type]; in __frontswap_load()
333 struct swap_info_struct *sis = swap_info[type]; in __frontswap_invalidate_page()
355 struct swap_info_struct *sis = swap_info[type]; in __frontswap_invalidate_area()
374 struct swap_info_struct *si = NULL; in __frontswap_curr_pages()
[all …]
H A Dpage_io.c98 int generic_swapfile_activate(struct swap_info_struct *sis, in generic_swapfile_activate()
259 struct swap_info_struct *sis = page_swap_info(page); in __swap_writepage()
335 struct swap_info_struct *sis = page_swap_info(page); in swap_readpage()
418 struct swap_info_struct *sis = page_swap_info(page); in swap_set_page_dirty()
H A Dswap_state.c76 struct swap_info_struct *si; in total_swapcache_pages()
374 struct swap_info_struct *si; in lookup_swap_cache()
432 struct swap_info_struct *si; in find_get_incore_page()
456 struct swap_info_struct *si; in __read_swap_cache_async()
662 struct swap_info_struct *si = swp_swap_info(entry); in swap_cluster_readahead()
H A Dshmem.c1197 extern struct swap_info_struct *swap_info[];
H A Dmemory.c3653 struct swap_info_struct *si = swp_swap_info(entry); in do_swap_page()
/OK3568_Linux_fs/kernel/include/linux/
H A Dfrontswap.h33 extern bool __frontswap_test(struct swap_info_struct *, pgoff_t);
48 static inline bool frontswap_test(struct swap_info_struct *sis, pgoff_t offset) in frontswap_test()
53 static inline void frontswap_map_set(struct swap_info_struct *p, in frontswap_map_set()
59 static inline unsigned long *frontswap_map_get(struct swap_info_struct *p) in frontswap_map_get()
71 static inline bool frontswap_test(struct swap_info_struct *sis, pgoff_t offset) in frontswap_test()
76 static inline void frontswap_map_set(struct swap_info_struct *p, in frontswap_map_set()
81 static inline unsigned long *frontswap_map_get(struct swap_info_struct *p) in frontswap_map_get()
H A Dswap.h240 struct swap_info_struct { struct
411 int add_swap_extent(struct swap_info_struct *sis, unsigned long start_page,
413 int generic_swapfile_activate(struct swap_info_struct *, struct file *,
490 extern struct swap_info_struct *page_swap_info(struct page *);
491 extern struct swap_info_struct *swp_swap_info(swp_entry_t entry);
497 extern struct swap_info_struct *get_swap_device(swp_entry_t entry);
500 static inline void put_swap_device(struct swap_info_struct *si) in put_swap_device()
512 static inline struct swap_info_struct *swp_swap_info(swp_entry_t entry) in swp_swap_info()
H A Dswapfile.h11 extern struct swap_info_struct *swap_info[];
H A Diomap.h276 struct swap_info_struct;
278 int iomap_swapfile_activate(struct swap_info_struct *sis,
H A Dfs.h63 struct swap_info_struct;
415 int (*swap_activate)(struct swap_info_struct *sis, struct file *file,
/OK3568_Linux_fs/kernel/include/trace/hooks/
H A Dmm.h218 TP_PROTO(struct swap_info_struct *sis),
221 TP_PROTO(struct swap_info_struct *sis),
224 TP_PROTO(struct swap_info_struct *sis, struct page *page, bool *skip),
264 TP_PROTO(struct swap_info_struct *si, bool *skip),
267 TP_PROTO(struct swap_info_struct *si, struct page *page),
270 TP_PROTO(struct swap_info_struct *p, struct plist_head *swap_avail_heads),
273 TP_PROTO(struct swap_info_struct *si, bool *skip),
276 TP_PROTO(struct swap_info_struct **p, bool *skip),
279 TP_PROTO(struct swap_info_struct **p, bool *skip),
/OK3568_Linux_fs/kernel/fs/iomap/
H A Dswapfile.c16 struct swap_info_struct *sis;
141 int iomap_swapfile_activate(struct swap_info_struct *sis, in iomap_swapfile_activate()
/OK3568_Linux_fs/kernel/fs/xfs/
H A Dxfs_aops.c659 struct swap_info_struct *sis, in xfs_iomap_swapfile_activate()
/OK3568_Linux_fs/kernel/fs/nfs/
H A Dfile.c485 static int nfs_swap_activate(struct swap_info_struct *sis, struct file *file, in nfs_swap_activate()
/OK3568_Linux_fs/kernel/fs/f2fs/
H A Ddata.c4046 static int check_swap_activate(struct swap_info_struct *sis, in check_swap_activate()
4153 static int f2fs_swap_activate(struct swap_info_struct *sis, struct file *file, in f2fs_swap_activate()
4196 static int f2fs_swap_activate(struct swap_info_struct *sis, struct file *file, in f2fs_swap_activate()
/OK3568_Linux_fs/kernel/fs/zonefs/
H A Dsuper.c204 static int zonefs_swap_activate(struct swap_info_struct *sis, in zonefs_swap_activate()
/OK3568_Linux_fs/kernel/fs/btrfs/
H A Dinode.c10111 static int btrfs_add_swap_extent(struct swap_info_struct *sis, in btrfs_add_swap_extent()
10161 static int btrfs_swap_activate(struct swap_info_struct *sis, struct file *file, in btrfs_swap_activate()
10418 static int btrfs_swap_activate(struct swap_info_struct *sis, struct file *file, in btrfs_swap_activate()
/OK3568_Linux_fs/kernel/fs/cifs/
H A Dfile.c4851 static int cifs_swap_activate(struct swap_info_struct *sis, in cifs_swap_activate()
/OK3568_Linux_fs/kernel/fs/ext4/
H A Dinode.c3730 static int ext4_iomap_swap_activate(struct swap_info_struct *sis, in ext4_iomap_swap_activate()