Commit 2a463e94 authored by Alan Huang's avatar Alan Huang Committed by Kent Overstreet
Browse files

bcachefs: Remove unused parameter of bkey_mantissa



The idx parameter of bkey_mantissa became unused since commit
b904a799 ("bcachefs: Go back to 16 bit mantissa bkey floats"),
so remove it.

Signed-off-by: default avatarAlan Huang <mmpgouride@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 59a1a62a
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -585,8 +585,7 @@ static unsigned rw_aux_tree_bsearch(struct btree *b,
}

static inline unsigned bkey_mantissa(const struct bkey_packed *k,
				     const struct bkey_float *f,
				     unsigned idx)
				     const struct bkey_float *f)
{
	u64 v;

@@ -668,7 +667,7 @@ static __always_inline void make_bfloat(struct btree *b, struct bset_tree *t,
	EBUG_ON(shift < 0 || shift >= BFLOAT_FAILED);

	f->exponent = shift;
	mantissa = bkey_mantissa(m, f, j);
	mantissa = bkey_mantissa(m, f);

	/*
	 * If we've got garbage bits, set them to all 1s - it's legal for the
@@ -1133,7 +1132,7 @@ static struct bkey_packed *bset_search_tree(const struct btree *b,
			goto slowpath;

		l = f->mantissa;
		r = bkey_mantissa(packed_search, f, n);
		r = bkey_mantissa(packed_search, f);

		if (unlikely(l == r) && bkey_mantissa_bits_dropped(b, f, n))
			goto slowpath;