diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2018-04-04 11:41:34 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2018-04-04 11:41:34 -0400 |
commit | 2a45f81c7b76b5151698fff5854555f1cb0998d8 (patch) | |
tree | d0addaf2234bffb9ddb52a6dbdd6cfb3253a123c /fs | |
parent | b6fced96d3c4c286d4d633a42121e0e1967d5a3b (diff) |
todoalloc_debug
Diffstat (limited to 'fs')
-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 != |