diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-03-24 20:22:51 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:57 -0400 |
commit | 0390ea8ad8f4079c25d47e8c249a2f621aaec3c0 (patch) | |
tree | 51600ed8ca29886ea526de23c47beb0a172a4f8a /fs/bcachefs/bset.h | |
parent | 7c8b166e584c85f9920d8f82778967eeee0e1b03 (diff) | |
download | linux-0390ea8ad8f4079c25d47e8c249a2f621aaec3c0.tar.gz linux-0390ea8ad8f4079c25d47e8c249a2f621aaec3c0.tar.bz2 linux-0390ea8ad8f4079c25d47e8c249a2f621aaec3c0.zip |
bcachefs: Drop bkey noops
Bkey noops were introduced to deal with trimming inline data extents in
place in the btree: if the u64s field of a bkey was 0, that u64 was a
noop and we'd start looking for the next bkey immediately after it.
But extent handling has been lifted above the btree - we no longer
modify existing extents in place in the btree, and the compatibilty code
for old style extent btree nodes is gone, so we can completely drop this
code.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/bset.h')
-rw-r--r-- | fs/bcachefs/bset.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/bset.h b/fs/bcachefs/bset.h index f19cd032cf70..8cf2301e510d 100644 --- a/fs/bcachefs/bset.h +++ b/fs/bcachefs/bset.h @@ -305,7 +305,7 @@ static inline struct bkey_s __bkey_disassemble(struct btree *b, #define bset_tree_for_each_key(_b, _t, _k) \ for (_k = btree_bkey_first(_b, _t); \ _k != btree_bkey_last(_b, _t); \ - _k = bkey_next_skip_noops(_k, btree_bkey_last(_b, _t))) + _k = bkey_next(_k)) static inline bool bset_has_ro_aux_tree(struct bset_tree *t) { |