Christoph Hellwig 48d15436fd mm: remove get_swap_bio
Just reuse the block_device and sector from the swap_info structure,
just as used by the SWP_SYNCHRONOUS path.  Also remove the checks for
NULL returns from bio_alloc as that can't happen for sleeping
allocations.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Acked-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-01-27 09:51:49 -07:00
..
2020-12-15 10:21:48 +01:00
2021-01-27 09:51:49 -07:00
2020-12-16 13:42:26 -08:00
2020-12-16 13:34:31 -08:00
2020-12-14 15:57:14 +01:00
2021-01-24 09:35:28 -08:00
2021-01-10 12:53:08 -08:00