Skip to content

Commit

Permalink
swap: Remove code handling bio_alloc failure with __GFP_WAIT
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nikanth Karthikesan authored and Jens Axboe committed Apr 15, 2009
1 parent b1fffc9 commit 297dbf5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/power/swap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 297dbf5

Please sign in to comment.