summaryrefslogtreecommitdiff
path: root/libbcachefs/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'libbcachefs/io.h')
-rw-r--r--libbcachefs/io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbcachefs/io.h b/libbcachefs/io.h
index 7a243a5f..1476380d 100644
--- a/libbcachefs/io.h
+++ b/libbcachefs/io.h
@@ -86,7 +86,7 @@ static inline void bch2_write_op_init(struct bch_write_op *op, struct bch_fs *c,
op->written = 0;
op->error = 0;
op->csum_type = bch2_data_checksum_type(c, opts);
- op->compression_type = bch2_compression_opt_to_type[opts.compression];
+ op->compression_opt = opts.compression;
op->nr_replicas = 0;
op->nr_replicas_required = c->opts.data_replicas_required;
op->watermark = BCH_WATERMARK_normal;