Commit 89ae9a04 authored by Alan Huang's avatar Alan Huang Committed by Kent Overstreet

bcachefs: Remove unused parameter of bkey_mantissa_bits_dropped

The idx parameter of bkey_mantissa_bits_dropped is unused, remove it.
Signed-off-by: default avatarAlan Huang <mmpgouride@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 2a463e94
...@@ -1097,8 +1097,7 @@ static inline void prefetch_four_cachelines(void *p) ...@@ -1097,8 +1097,7 @@ static inline void prefetch_four_cachelines(void *p)
} }
static inline bool bkey_mantissa_bits_dropped(const struct btree *b, static inline bool bkey_mantissa_bits_dropped(const struct btree *b,
const struct bkey_float *f, const struct bkey_float *f)
unsigned idx)
{ {
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
unsigned key_bits_start = b->format.key_u64s * 64 - b->nr_key_bits; 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, ...@@ -1134,7 +1133,7 @@ static struct bkey_packed *bset_search_tree(const struct btree *b,
l = f->mantissa; l = f->mantissa;
r = bkey_mantissa(packed_search, f); 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; goto slowpath;
n = n * 2 + (l < r); n = n * 2 + (l < r);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment