diff options
author | Nikanth Karthikesan <knikanth@suse.de> | 2009-04-15 10:35:52 +0530 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-04-15 12:10:13 +0200 |
commit | 4d1f9fdb6177a9bdecf26976337dd39abcc8edbc (patch) | |
tree | 55cf4b785995ea84635aa952bfbb6a8be3edacdc /fs | |
parent | 15afd1cc7b624e1c94fdf824ec5af611050b150c (diff) | |
download | linux-4d1f9fdb6177a9bdecf26976337dd39abcc8edbc.tar.gz linux-4d1f9fdb6177a9bdecf26976337dd39abcc8edbc.tar.bz2 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')
-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; |