summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-04-04 11:41:34 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2018-04-04 11:41:34 -0400
commit2a45f81c7b76b5151698fff5854555f1cb0998d8 (patch)
treed0addaf2234bffb9ddb52a6dbdd6cfb3253a123c /fs
parentb6fced96d3c4c286d4d633a42121e0e1967d5a3b (diff)
Diffstat (limited to 'fs')
-rw-r--r--fs/bcachefs/tier.c6
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 !=