summaryrefslogtreecommitdiff
path: root/fs/bcachefs/io.h
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-01-29 13:05:04 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:08:35 -0400
commit7d4aed1ea408f45aef8ddf5f28d8c10680b4f214 (patch)
treee30cea4ac06b697f932f9146c18fe96b0b5793af /fs/bcachefs/io.h
parent4dba7c301782de9cba75b7895a5068c0bf07a551 (diff)
downloadlwn-7d4aed1ea408f45aef8ddf5f28d8c10680b4f214.tar.gz
lwn-7d4aed1ea408f45aef8ddf5f28d8c10680b4f214.zip
bcachefs: Fix an uninitialized field in bch_write_op
Regression from "bcachefs: Track incompressible data" Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/io.h')
-rw-r--r--fs/bcachefs/io.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/io.h b/fs/bcachefs/io.h
index fa5841a86fcb..bc9f9fec2fd7 100644
--- a/fs/bcachefs/io.h
+++ b/fs/bcachefs/io.h
@@ -82,6 +82,7 @@ static inline void bch2_write_op_init(struct bch_write_op *op, struct bch_fs *c,
op->nr_replicas = 0;
op->nr_replicas_required = c->opts.data_replicas_required;
op->alloc_reserve = RESERVE_NONE;
+ op->incompressible = 0;
op->open_buckets.nr = 0;
op->devs_have.nr = 0;
op->target = 0;