Lines Matching refs:sis

78 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()
295 struct swap_info_struct *sis = page_swap_info(page); in swap_writepage_fs() local
296 struct file *swap_file = sis->swap_file; in swap_writepage_fs()
330 struct writeback_control *wbc, struct swap_info_struct *sis) in swap_writepage_bdev_sync() argument
336 bio_init(&bio, sis->bdev, &bv, 1, in swap_writepage_bdev_sync()
352 struct writeback_control *wbc, struct swap_info_struct *sis) in swap_writepage_bdev_async() argument
357 bio = bio_alloc(sis->bdev, 1, in swap_writepage_bdev_async()
373 struct swap_info_struct *sis = page_swap_info(page); in __swap_writepage() local
381 if (data_race(sis->flags & SWP_FS_OPS)) in __swap_writepage()
383 else if (sis->flags & SWP_SYNCHRONOUS_IO) in __swap_writepage()
384 swap_writepage_bdev_sync(page, wbc, sis); in __swap_writepage()
386 swap_writepage_bdev_async(page, wbc, sis); in __swap_writepage()
428 struct swap_info_struct *sis = page_swap_info(page); in swap_readpage_fs() local
435 if (sio->iocb.ki_filp != sis->swap_file || in swap_readpage_fs()
443 init_sync_kiocb(&sio->iocb, sis->swap_file); in swap_readpage_fs()
461 struct swap_info_struct *sis) in swap_readpage_bdev_sync() argument
466 bio_init(&bio, sis->bdev, &bv, 1, REQ_OP_READ); in swap_readpage_bdev_sync()
481 struct swap_info_struct *sis) in swap_readpage_bdev_async() argument
485 bio = bio_alloc(sis->bdev, 1, REQ_OP_READ, GFP_KERNEL); in swap_readpage_bdev_async()
496 struct swap_info_struct *sis = page_swap_info(page); in swap_readpage() local
519 } else if (data_race(sis->flags & SWP_FS_OPS)) { in swap_readpage()
521 } else if (synchronous || (sis->flags & SWP_SYNCHRONOUS_IO)) { in swap_readpage()
522 swap_readpage_bdev_sync(page, sis); in swap_readpage()
524 swap_readpage_bdev_async(page, sis); in swap_readpage()