diff options
author | Nikanth Karthikesan <knikanth@suse.de> | 2009-04-15 09:05:52 +0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-04-15 14:10:13 +0400 |
commit | 4d1f9fdb6177a9bdecf26976337dd39abcc8edbc (patch) | |
tree | 55cf4b785995ea84635aa952bfbb6a8be3edacdc | |
parent | 15afd1cc7b624e1c94fdf824ec5af611050b150c (diff) | |
download | linux-4d1f9fdb6177a9bdecf26976337dd39abcc8edbc.tar.xz |
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>
-rw-r--r-- | fs/direct-io.c | 2 |
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; |