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/bkey.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/bkey.h')
-rw-r--r-- | fs/bcachefs/bkey.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/bcachefs/bkey.h b/fs/bcachefs/bkey.h index 77d9d871adfb..51dc49b9ffba 100644 --- a/fs/bcachefs/bkey.h +++ b/fs/bcachefs/bkey.h @@ -41,16 +41,6 @@ struct bkey_s { #define bkey_next(_k) vstruct_next(_k) -static inline struct bkey_packed *bkey_next_skip_noops(struct bkey_packed *k, - struct bkey_packed *end) -{ - k = bkey_next(k); - - while (k != end && !k->u64s) - k = (void *) ((u64 *) k + 1); - return k; -} - #define bkey_val_u64s(_k) ((_k)->u64s - BKEY_U64s) static inline size_t bkey_val_bytes(const struct bkey *k) |