maple_tree: remove an unused parameter for ma_meta_end()
The parameter maple_type is not used, so remove it. Link: https://lkml.kernel.org/r/20231120070937.35481-4-zhangpeng.00@bytedance.com Signed-off-by: Peng Zhang <zhangpeng.00@bytedance.com> Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com> Cc: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
3f05fcdebf
commit
c5e9412138
@@ -930,10 +930,8 @@ static inline unsigned char ma_meta_end(struct maple_node *mn,
|
|||||||
/*
|
/*
|
||||||
* ma_meta_gap() - Get the largest gap location of a node from the metadata
|
* ma_meta_gap() - Get the largest gap location of a node from the metadata
|
||||||
* @mn: The maple node
|
* @mn: The maple node
|
||||||
* @mt: The maple node type
|
|
||||||
*/
|
*/
|
||||||
static inline unsigned char ma_meta_gap(struct maple_node *mn,
|
static inline unsigned char ma_meta_gap(struct maple_node *mn)
|
||||||
enum maple_type mt)
|
|
||||||
{
|
{
|
||||||
return mn->ma64.meta.gap;
|
return mn->ma64.meta.gap;
|
||||||
}
|
}
|
||||||
@@ -1587,7 +1585,7 @@ static inline unsigned long mas_max_gap(struct ma_state *mas)
|
|||||||
|
|
||||||
node = mas_mn(mas);
|
node = mas_mn(mas);
|
||||||
MAS_BUG_ON(mas, mt != maple_arange_64);
|
MAS_BUG_ON(mas, mt != maple_arange_64);
|
||||||
offset = ma_meta_gap(node, mt);
|
offset = ma_meta_gap(node);
|
||||||
gaps = ma_gaps(node, mt);
|
gaps = ma_gaps(node, mt);
|
||||||
return gaps[offset];
|
return gaps[offset];
|
||||||
}
|
}
|
||||||
@@ -1618,7 +1616,7 @@ static inline void mas_parent_gap(struct ma_state *mas, unsigned char offset,
|
|||||||
|
|
||||||
ascend:
|
ascend:
|
||||||
MAS_BUG_ON(mas, pmt != maple_arange_64);
|
MAS_BUG_ON(mas, pmt != maple_arange_64);
|
||||||
meta_offset = ma_meta_gap(pnode, pmt);
|
meta_offset = ma_meta_gap(pnode);
|
||||||
meta_gap = pgaps[meta_offset];
|
meta_gap = pgaps[meta_offset];
|
||||||
|
|
||||||
pgaps[offset] = new;
|
pgaps[offset] = new;
|
||||||
@@ -7260,7 +7258,7 @@ static void mas_validate_gaps(struct ma_state *mas)
|
|||||||
counted:
|
counted:
|
||||||
if (mt == maple_arange_64) {
|
if (mt == maple_arange_64) {
|
||||||
MT_BUG_ON(mas->tree, !gaps);
|
MT_BUG_ON(mas->tree, !gaps);
|
||||||
offset = ma_meta_gap(node, mt);
|
offset = ma_meta_gap(node);
|
||||||
if (offset > i) {
|
if (offset > i) {
|
||||||
pr_err("gap offset %p[%u] is invalid\n", node, offset);
|
pr_err("gap offset %p[%u] is invalid\n", node, offset);
|
||||||
MT_BUG_ON(mas->tree, 1);
|
MT_BUG_ON(mas->tree, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user