diff options
author | Nikanth Karthikesan <knikanth@suse.de> | 2009-04-15 10:37:04 +0530 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-04-15 12:10:13 +0200 |
commit | 297dbf50d7ab0539cf9cf7f2a66918665a18e45e (patch) | |
tree | 56259196991d500a9e503613182a4ffe868b932e /kernel | |
parent | b1fffc9ca6ca4c3feef3a7e8405252d528d312dc (diff) | |
download | linux-297dbf50d7ab0539cf9cf7f2a66918665a18e45e.tar.gz linux-297dbf50d7ab0539cf9cf7f2a66918665a18e45e.tar.bz2 linux-297dbf50d7ab0539cf9cf7f2a66918665a18e45e.zip |
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>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/power/swap.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/power/swap.c b/kernel/power/swap.c index 505f319e489c..8ba052c86d48 100644 --- a/kernel/power/swap.c +++ b/kernel/power/swap.c @@ -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; |