Skip to content

Commit

Permalink
dio: Remove code handling bio_alloc failure with __GFP_WAIT
Browse files Browse the repository at this point in the history
Remove code handling bio_alloc failure with __GFP_WAIT.
GFP_KERNEL implies __GFP_WAIT.

Signed-off-by: Nikanth Karthikesan <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Nikanth Karthikesan authored and Jens Axboe committed Apr 15, 2009
1 parent 15afd1c commit 4d1f9fd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/direct-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4d1f9fd

Please sign in to comment.