Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 297dbf50 authored by Nikanth Karthikesan's avatar Nikanth Karthikesan Committed by Jens Axboe
Browse files

swap: Remove code handling bio_alloc failure with __GFP_WAIT



Remove code handling bio_alloc failure with __GFP_WAIT.

Signed-off-by: default avatarNikanth Karthikesan <knikanth@suse.de>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent b1fffc9c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -64,8 +64,6 @@ static int submit(int rw, pgoff_t page_off, struct page *page,
	struct bio *bio;

	bio = bio_alloc(__GFP_WAIT | __GFP_HIGH, 1);
	if (!bio)
		return -ENOMEM;
	bio->bi_sector = page_off * (PAGE_SIZE >> 9);
	bio->bi_bdev = resume_bdev;
	bio->bi_end_io = end_swap_bio_read;