Home
last modified time | relevance | path

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

/mm/
Dfrontswap.c196 struct swap_info_struct *sis = swap_info[type]; in __frontswap_init() local
199 VM_BUG_ON(sis == NULL); in __frontswap_init()
212 frontswap_map_set(sis, map); in __frontswap_init()
219 bool __frontswap_test(struct swap_info_struct *sis, in __frontswap_test() argument
222 if (sis->frontswap_map) in __frontswap_test()
223 return test_bit(offset, sis->frontswap_map); in __frontswap_test()
228 static inline void __frontswap_set(struct swap_info_struct *sis, in __frontswap_set() argument
231 set_bit(offset, sis->frontswap_map); in __frontswap_set()
232 atomic_inc(&sis->frontswap_pages); in __frontswap_set()
235 static inline void __frontswap_clear(struct swap_info_struct *sis, in __frontswap_clear() argument
[all …]
Dpage_io.c78 int generic_swapfile_activate(struct swap_info_struct *sis, in generic_swapfile_activate() argument
105 page_no < sis->max) { in generic_swapfile_activate()
151 ret = add_swap_extent(sis, page_no, 1, first_block); in generic_swapfile_activate()
164 sis->max = page_no; in generic_swapfile_activate()
165 sis->pages = page_no - 1; in generic_swapfile_activate()
166 sis->highest_bit = page_no - 1; in generic_swapfile_activate()
241 struct swap_info_struct *sis = page_swap_info(page); in __swap_writepage() local
244 if (data_race(sis->flags & SWP_FS_OPS)) { in __swap_writepage()
246 struct file *swap_file = sis->swap_file; in __swap_writepage()
285 ret = bdev_write_page(sis->bdev, swap_page_sector(page), page, wbc); in __swap_writepage()
[all …]
Dswapfile.c153 static inline struct swap_extent *first_se(struct swap_info_struct *sis) in first_se() argument
155 struct rb_node *rb = rb_first(&sis->swap_extent_root); in first_se()
203 offset_to_swap_extent(struct swap_info_struct *sis, unsigned long offset) in offset_to_swap_extent() argument
208 rb = sis->swap_extent_root.rb_node; in offset_to_swap_extent()
224 struct swap_info_struct *sis = page_swap_info(page); in swap_page_sector() local
230 se = offset_to_swap_extent(sis, offset); in swap_page_sector()
1812 struct swap_info_struct *sis = swap_info[type]; in swap_type_of() local
1814 if (!(sis->flags & SWP_WRITEOK)) in swap_type_of()
1817 if (device == sis->bdev->bd_dev) { in swap_type_of()
1818 struct swap_extent *se = first_se(sis); in swap_type_of()
[all …]