diff options
author | Xianting Tian <xianting.tian@linux.alibaba.com> | 2021-06-30 17:33:36 +0300 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@wdc.com> | 2021-07-16 07:45:18 +0300 |
commit | 2f53d15cf95824ed320abed3c33759b8b21aca15 (patch) | |
tree | 06f25495fc9be925b75041eed2f967202e29aacd /fs/zonefs | |
parent | e73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff) | |
download | linux-2f53d15cf95824ed320abed3c33759b8b21aca15.tar.xz |
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 <xianting.tian@linux.alibaba.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Diffstat (limited to 'fs/zonefs')
-rw-r--r-- | fs/zonefs/super.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/zonefs/super.c b/fs/zonefs/super.c index dbf03635869c..70055d486bf7 100644 --- a/fs/zonefs/super.c +++ b/fs/zonefs/super.c @@ -705,9 +705,6 @@ static ssize_t zonefs_file_dio_append(struct kiocb *iocb, struct iov_iter *from) return 0; bio = bio_alloc(GFP_NOFS, nr_pages); - if (!bio) - return -ENOMEM; - bio_set_dev(bio, bdev); bio->bi_iter.bi_sector = zi->i_zsector; bio->bi_write_hint = iocb->ki_hint; |