From: Nikanth Karthikesan Date: Wed, 15 Apr 2009 05:05:52 +0000 (+0530) Subject: dio: Remove code handling bio_alloc failure with __GFP_WAIT X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4d1f9fdb6177a9bdecf26976337dd39abcc8edbc;p=linux-beck.git dio: Remove code handling bio_alloc failure with __GFP_WAIT Remove code handling bio_alloc failure with __GFP_WAIT. GFP_KERNEL implies __GFP_WAIT. Signed-off-by: Nikanth Karthikesan Signed-off-by: Jens Axboe --- diff --git a/fs/direct-io.c b/fs/direct-io.c index da258e7249cc..05763bbc2050 100644 --- a/fs/direct-io.c +++ b/fs/direct-io.c @@ -307,8 +307,6 @@ dio_bio_alloc(struct dio *dio, struct block_device *bdev, struct bio *bio; bio = bio_alloc(GFP_KERNEL, nr_vecs); - if (bio == NULL) - return -ENOMEM; bio->bi_bdev = bdev; bio->bi_sector = first_sector;