diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-10-21 09:22:12 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-11-10 20:25:11 -0500 |
commit | c3dc2810e00ed9137ddbd88c5794e15ce15e060c (patch) | |
tree | b9d198d554216136a23c960feb0c79bfa8550f3d | |
parent | d9d414e3b9e0139e994caae55619b823bacfc3df (diff) |
TODO: plug ec into rebalance
-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; } |