Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

swap: Remove code handling bio_alloc failure with __GFP_WAIT

Remove code handling bio_alloc failure with __GFP_WAIT.

Signed-off-by: Nikanth Karthikesan <knikanth@suse.de>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

authored by

Nikanth Karthikesan and committed by
Jens Axboe
297dbf50 b1fffc9c

-2
-2
kernel/power/swap.c
··· 64 64 struct bio *bio; 65 65 66 66 bio = bio_alloc(__GFP_WAIT | __GFP_HIGH, 1); 67 - if (!bio) 68 - return -ENOMEM; 69 67 bio->bi_sector = page_off * (PAGE_SIZE >> 9); 70 68 bio->bi_bdev = resume_bdev; 71 69 bio->bi_end_io = end_swap_bio_read;