Skip to content

Commit 2f53d15

Browse files
Xianting Tiandamien-lemoal
authored andcommitted
zonefs: remove redundant null bio check
bio_alloc() with __GFP_DIRECT_RECLAIM, which is included in GFP_NOFS, never fails, see comments in bio_alloc_bioset(). Signed-off-by: Xianting Tian <[email protected]> Signed-off-by: Damien Le Moal <[email protected]>
1 parent e73f0f0 commit 2f53d15

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/zonefs/super.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -705,9 +705,6 @@ static ssize_t zonefs_file_dio_append(struct kiocb *iocb, struct iov_iter *from)
705705
return 0;
706706

707707
bio = bio_alloc(GFP_NOFS, nr_pages);
708-
if (!bio)
709-
return -ENOMEM;
710-
711708
bio_set_dev(bio, bdev);
712709
bio->bi_iter.bi_sector = zi->i_zsector;
713710
bio->bi_write_hint = iocb->ki_hint;

0 commit comments

Comments
 (0)