Lines Matching refs:sis
192 struct swap_info_struct *sis = swap_info[type];
195 VM_BUG_ON(sis == NULL);
208 frontswap_map_set(sis, map);
215 bool __frontswap_test(struct swap_info_struct *sis,
218 if (sis->frontswap_map)
219 return test_bit(offset, sis->frontswap_map);
224 static inline void __frontswap_set(struct swap_info_struct *sis,
227 set_bit(offset, sis->frontswap_map);
228 atomic_inc(&sis->frontswap_pages);
231 static inline void __frontswap_clear(struct swap_info_struct *sis,
234 clear_bit(offset, sis->frontswap_map);
235 atomic_dec(&sis->frontswap_pages);
250 struct swap_info_struct *sis = swap_info[type];
256 VM_BUG_ON(sis == NULL);
264 if (__frontswap_test(sis, offset)) {
265 __frontswap_clear(sis, offset);
277 __frontswap_set(sis, offset);
299 struct swap_info_struct *sis = swap_info[type];
305 VM_BUG_ON(sis == NULL);
307 if (!__frontswap_test(sis, offset))
320 __frontswap_clear(sis, offset);
333 struct swap_info_struct *sis = swap_info[type];
337 VM_BUG_ON(sis == NULL);
339 if (!__frontswap_test(sis, offset))
344 __frontswap_clear(sis, offset);
355 struct swap_info_struct *sis = swap_info[type];
359 VM_BUG_ON(sis == NULL);
361 if (sis->frontswap_map == NULL)
366 atomic_set(&sis->frontswap_pages, 0);
367 bitmap_zero(sis->frontswap_map, sis->max);