diff options
author | Alan Huang <mmpgouride@gmail.com> | 2024-08-10 18:52:25 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-09-09 15:41:49 +0200 |
commit | 89ae9a04b2fff507395ef0a6958bfc4f75886f7e (patch) | |
tree | 3dde670fe6ada08c85aa6cab210410a12bffc63c | |
parent | bcachefs: Remove unused parameter of bkey_mantissa (diff) | |
download | linux-89ae9a04b2fff507395ef0a6958bfc4f75886f7e.tar.xz linux-89ae9a04b2fff507395ef0a6958bfc4f75886f7e.zip |
bcachefs: Remove unused parameter of bkey_mantissa_bits_dropped
The idx parameter of bkey_mantissa_bits_dropped is unused, remove it.
Signed-off-by: Alan Huang <mmpgouride@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | fs/bcachefs/bset.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/bcachefs/bset.c b/fs/bcachefs/bset.c index 61ccb56b26f5..45e8ab5c3c5c 100644 --- a/fs/bcachefs/bset.c +++ b/fs/bcachefs/bset.c @@ -1097,8 +1097,7 @@ static inline void prefetch_four_cachelines(void *p) } static inline bool bkey_mantissa_bits_dropped(const struct btree *b, - const struct bkey_float *f, - unsigned idx) + const struct bkey_float *f) { #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ unsigned key_bits_start = b->format.key_u64s * 64 - b->nr_key_bits; @@ -1134,7 +1133,7 @@ static struct bkey_packed *bset_search_tree(const struct btree *b, l = f->mantissa; r = bkey_mantissa(packed_search, f); - if (unlikely(l == r) && bkey_mantissa_bits_dropped(b, f, n)) + if (unlikely(l == r) && bkey_mantissa_bits_dropped(b, f)) goto slowpath; n = n * 2 + (l < r); |