Skip to content

Commit 4d1f9fd

Browse files
Nikanth KarthikesanJens Axboe
authored andcommitted
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>
1 parent 15afd1c commit 4d1f9fd

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎fs/direct-io.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,6 @@ dio_bio_alloc(struct dio *dio, struct block_device *bdev,
307307
struct bio *bio;
308308

309309
bio = bio_alloc(GFP_KERNEL, nr_vecs);
310-
if (bio == NULL)
311-
return -ENOMEM;
312310

313311
bio->bi_bdev = bdev;
314312
bio->bi_sector = first_sector;

0 commit comments

Comments
 (0)