summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-03-10 11:54:13 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-03-16 13:47:55 -0400
commit6d80fca9efe9255369aa91e85e8f3367c42acdde (patch)
tree9a72fb8b433d12f8eebec9c290bc2040ddead85f
parent9ec00891493d3e4f60678ed12988761538f95bd1 (diff)
bcachefs: Don't create bch_io_failures unless it's needed
Only needed in retry path, no point in wasting stack space. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r--fs/bcachefs/io_read.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/bcachefs/io_read.h b/fs/bcachefs/io_read.h
index 73275da5d2c4..6bdb8efb4cd1 100644
--- a/fs/bcachefs/io_read.h
+++ b/fs/bcachefs/io_read.h
@@ -147,13 +147,11 @@ void __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);