Only needed in retry path, no point in wasting stack space.
Signed-off-by: Kent Overstreet <[email protected]>
---
fs/bcachefs/io_read.h | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/fs/bcachefs/io_read.h b/fs/bcachefs/io_read.h
index 6e5ea5b45a54..42a22985d789 100644
--- a/fs/bcachefs/io_read.h
+++ b/fs/bcachefs/io_read.h
@@ -146,13 +146,11 @@ int __bch2_read(struct bch_fs *, struct bch_read_bio *,
struct bvec_iter,
static inline void bch2_read(struct bch_fs *c, struct bch_read_bio *rbio,
subvol_inum inum)
{
- struct bch_io_failures failed = { .nr = 0 };
-
BUG_ON(rbio->_state);
rbio->subvol = inum.subvol;
- __bch2_read(c, rbio, rbio->bio.bi_iter, inum, &failed,
+ __bch2_read(c, rbio, rbio->bio.bi_iter, inum, NULL,
BCH_READ_retry_if_stale|
BCH_READ_may_promote|
BCH_READ_user_mapped);
--
2.47.2