diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-07-10 20:31:34 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-07-15 17:36:15 -0400 |
commit | c8bec83e307f28751c433ba1d3f648429fb5a34c (patch) | |
tree | 6e70e0cf8f25117f706214d86a0689ee8495dca0 /libbcachefs/rebalance.c | |
parent | 1c156d5c4667c1c2e2949b229dfef75696196d35 (diff) |
Update bcachefs sources to e14d7c7195 bcachefs: Compression levels
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'libbcachefs/rebalance.c')
-rw-r--r-- | libbcachefs/rebalance.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbcachefs/rebalance.c b/libbcachefs/rebalance.c index 989f37a3..c3d57723 100644 --- a/libbcachefs/rebalance.c +++ b/libbcachefs/rebalance.c @@ -5,6 +5,7 @@ #include "btree_iter.h" #include "buckets.h" #include "clock.h" +#include "compress.h" #include "disk_groups.h" #include "errcode.h" #include "extents.h" @@ -45,7 +46,7 @@ static bool rebalance_pred(struct bch_fs *c, void *arg, bkey_for_each_ptr_decode(k.k, ptrs, p, entry) { if (!p.ptr.cached && p.crc.compression_type != - bch2_compression_opt_to_type[io_opts->background_compression]) + bch2_compression_opt_to_type(io_opts->background_compression)) data_opts->rewrite_ptrs |= 1U << i; i++; } |