summaryrefslogtreecommitdiffstats
path: root/fs/direct-io.c
diff options
context:
space:
mode:
authorNikanth Karthikesan <knikanth@suse.de>2009-04-15 07:05:52 +0200
committerJens Axboe <jens.axboe@oracle.com>2009-04-15 12:10:13 +0200
commit4d1f9fdb6177a9bdecf26976337dd39abcc8edbc (patch)
tree55cf4b785995ea84635aa952bfbb6a8be3edacdc /fs/direct-io.c
parentblock: Remove code handling bio_alloc failure with __GFP_WAIT (diff)
downloadlinux-4d1f9fdb6177a9bdecf26976337dd39abcc8edbc.tar.xz
linux-4d1f9fdb6177a9bdecf26976337dd39abcc8edbc.zip
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 <knikanth@suse.de> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'fs/direct-io.c')
-rw-r--r--fs/direct-io.c2
1 files changed, 0 insertions, 2 deletions
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;