Skip to content

Commit 297dbf5

Browse files
Nikanth KarthikesanJens Axboe
authored andcommitted
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>
1 parent b1fffc9 commit 297dbf5

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎kernel/power/swap.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ static int submit(int rw, pgoff_t page_off, struct page *page,
6464
struct bio *bio;
6565

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

0 commit comments

Comments
 (0)