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-Tag: v3.0~9503^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d1f9fdb6177a9bdecf26976337dd39abcc8edbc;p=platform%2Fkernel%2Flinux-amlogic.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 da258e7..05763bb 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;