Home
last modified time | relevance | path

Searched refs:sis (Results 1 – 3 of 3) sorted by relevance

/mm/
Dfrontswap.c192 struct swap_info_struct *sis = swap_info[type]; in __frontswap_init() local
195 VM_BUG_ON(sis == NULL); in __frontswap_init()
208 frontswap_map_set(sis, map); in __frontswap_init()
215 bool __frontswap_test(struct swap_info_struct *sis, in __frontswap_test() argument
218 if (sis->frontswap_map) in __frontswap_test()
219 return test_bit(offset, sis->frontswap_map); in __frontswap_test()
224 static inline void __frontswap_set(struct swap_info_struct *sis, in __frontswap_set() argument
227 set_bit(offset, sis->frontswap_map); in __frontswap_set()
228 atomic_inc(&sis->frontswap_pages); in __frontswap_set()
231 static inline void __frontswap_clear(struct swap_info_struct *sis, in __frontswap_clear() argument
[all …]
Dpage_io.c98 int generic_swapfile_activate(struct swap_info_struct *sis, in generic_swapfile_activate() argument
125 page_no < sis->max) { in generic_swapfile_activate()
171 ret = add_swap_extent(sis, page_no, 1, first_block); in generic_swapfile_activate()
184 sis->max = page_no; in generic_swapfile_activate()
185 sis->pages = page_no - 1; in generic_swapfile_activate()
186 sis->highest_bit = page_no - 1; in generic_swapfile_activate()
259 struct swap_info_struct *sis = page_swap_info(page); in __swap_writepage() local
263 if (data_race(sis->flags & SWP_FS_OPS)) { in __swap_writepage()
265 struct file *swap_file = sis->swap_file; in __swap_writepage()
282 trace_android_vh_count_pswpout(sis); in __swap_writepage()
[all …]
Dswapfile.c156 static inline struct swap_extent *first_se(struct swap_info_struct *sis) in first_se() argument
158 struct rb_node *rb = rb_first(&sis->swap_extent_root); in first_se()
206 offset_to_swap_extent(struct swap_info_struct *sis, unsigned long offset) in offset_to_swap_extent() argument
211 rb = sis->swap_extent_root.rb_node; in offset_to_swap_extent()
227 struct swap_info_struct *sis = page_swap_info(page); in swap_page_sector() local
233 se = offset_to_swap_extent(sis, offset); in swap_page_sector()
1851 struct swap_info_struct *sis = swap_info[type]; in swap_type_of() local
1853 if (!(sis->flags & SWP_WRITEOK)) in swap_type_of()
1856 if (device == sis->bdev->bd_dev) { in swap_type_of()
1857 struct swap_extent *se = first_se(sis); in swap_type_of()
[all …]