diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-06-28 02:02:17 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:10:05 +0300 |
commit | 2766876d5d118abd59d14fbe5b31e7e208ea11f2 (patch) | |
tree | 8b12ea230e8b3bb2a8c58e78b2d7bfdb9247458e /fs/bcachefs/extents.h | |
parent | 4e1430a728499ce8088e1bdd0dd6467ce3447ca0 (diff) | |
download | linux-2766876d5d118abd59d14fbe5b31e7e208ea11f2.tar.xz |
bcachefs: struct bch_extent_rebalance
This adds the extent entry for extents that rebalance needs to do
something with.
We're adding this ahead of the main rebalance_work patchset, because
adding new extent entries can't be done in a forwards-compatible way.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/extents.h')
-rw-r--r-- | fs/bcachefs/extents.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/bcachefs/extents.h b/fs/bcachefs/extents.h index 3ba41e37d864..c573a40d366a 100644 --- a/fs/bcachefs/extents.h +++ b/fs/bcachefs/extents.h @@ -318,6 +318,9 @@ static inline struct bkey_ptrs bch2_bkey_ptrs(struct bkey_s k) (_ptr).ec = _entry->stripe_ptr; \ (_ptr).has_ec = true; \ break; \ + default: \ + /* nothing */ \ + break; \ } \ out: \ _entry < (_end); \ |