projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e73f0f0
)
zonefs: remove redundant null bio check
author
Xianting Tian
<xianting.tian@linux.alibaba.com>
Wed, 30 Jun 2021 14:33:36 +0000
(10:33 -0400)
committer
Damien Le Moal
<damien.lemoal@wdc.com>
Fri, 16 Jul 2021 04:45:18 +0000
(13:45 +0900)
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>
fs/zonefs/super.c
patch
|
blob
|
history
diff --git
a/fs/zonefs/super.c
b/fs/zonefs/super.c
index dbf03635869c30adefa8288271c8ef8cc35544a6..70055d486bf70be1f7d1cb5dcb64d3d03e5da957 100644
(file)
--- 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;