Home
last modified time | relevance | path

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

/mm/
Dfrontswap.c125 struct swap_info_struct *sis = swap_info[i]; in frontswap_register_ops() local
127 if (!sis->frontswap_map) in frontswap_register_ops()
166 struct swap_info_struct *sis = swap_info[type]; in __frontswap_init() local
168 BUG_ON(sis == NULL); in __frontswap_init()
181 frontswap_map_set(sis, map); in __frontswap_init()
191 bool __frontswap_test(struct swap_info_struct *sis, in __frontswap_test() argument
196 if (frontswap_ops && sis->frontswap_map) in __frontswap_test()
197 ret = test_bit(offset, sis->frontswap_map); in __frontswap_test()
202 static inline void __frontswap_clear(struct swap_info_struct *sis, in __frontswap_clear() argument
205 clear_bit(offset, sis->frontswap_map); in __frontswap_clear()
[all …]
Dpage_io.c96 struct swap_info_struct *sis; in end_swap_bio_read() local
98 sis = page_swap_info(page); in end_swap_bio_read()
99 if (sis->flags & SWP_BLKDEV) { in end_swap_bio_read()
116 struct gendisk *disk = sis->bdev->bd_disk; in end_swap_bio_read()
125 disk->fops->swap_slot_free_notify(sis->bdev, in end_swap_bio_read()
136 int generic_swapfile_activate(struct swap_info_struct *sis, in generic_swapfile_activate() argument
163 page_no < sis->max) { in generic_swapfile_activate()
204 ret = add_swap_extent(sis, page_no, 1, first_block); in generic_swapfile_activate()
217 sis->max = page_no; in generic_swapfile_activate()
218 sis->pages = page_no - 1; in generic_swapfile_activate()
[all …]
Dswapfile.c1040 struct swap_info_struct *sis = swap_info[type]; in swap_type_of() local
1042 if (!(sis->flags & SWP_WRITEOK)) in swap_type_of()
1047 *bdev_p = bdgrab(sis->bdev); in swap_type_of()
1052 if (bdev == sis->bdev) { in swap_type_of()
1053 struct swap_extent *se = &sis->first_swap_extent; in swap_type_of()
1057 *bdev_p = bdgrab(sis->bdev); in swap_type_of()
1099 struct swap_info_struct *sis = swap_info[type]; in count_swap_pages() local
1101 spin_lock(&sis->lock); in count_swap_pages()
1102 if (sis->flags & SWP_WRITEOK) { in count_swap_pages()
1103 n = sis->pages; in count_swap_pages()
[all …]