diff options
-rw-r--r-- | fs/bcachefs/rebalance.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fs/bcachefs/rebalance.c b/fs/bcachefs/rebalance.c index 25d72de64d6a..7741615d99e3 100644 --- a/fs/bcachefs/rebalance.c +++ b/fs/bcachefs/rebalance.c @@ -29,7 +29,12 @@ static inline bool rebalance_ptr_pred(struct bch_fs *c, p.crc.compression_type != bch2_compression_opt_to_type[io_opts->background_compression]) return true; - +#if 0 + if (io_opts->ec && + !p.ec_nr && + can_do_ec(c)) + return true; +#endif return false; } |