diff options
-rw-r--r-- | fs/bcachefs/tier.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/bcachefs/tier.c b/fs/bcachefs/tier.c index 211a844c69cf..f35f4f8cfd92 100644 --- a/fs/bcachefs/tier.c +++ b/fs/bcachefs/tier.c @@ -24,8 +24,12 @@ static inline bool rebalance_ptr_pred(struct bch_fs *c, if (io_opts->background_target && !dev_in_target(ca, io_opts->background_target) && - !ptr->cached) + !ptr->cached) { + /* + * XXX: check to make sure target has devices, space available: + */ return true; + } if (io_opts->background_compression && crc.compression_type != |