@@ -930,10 +930,8 @@ static inline unsigned char ma_meta_end(struct maple_node *mn,
930930/*
931931 * ma_meta_gap() - Get the largest gap location of a node from the metadata
932932 * @mn: The maple node
933- * @mt: The maple node type
934933 */
935- static inline unsigned char ma_meta_gap (struct maple_node * mn ,
936- enum maple_type mt )
934+ static inline unsigned char ma_meta_gap (struct maple_node * mn )
937935{
938936 return mn -> ma64 .meta .gap ;
939937}
@@ -1587,7 +1585,7 @@ static inline unsigned long mas_max_gap(struct ma_state *mas)
15871585
15881586 node = mas_mn (mas );
15891587 MAS_BUG_ON (mas , mt != maple_arange_64 );
1590- offset = ma_meta_gap (node , mt );
1588+ offset = ma_meta_gap (node );
15911589 gaps = ma_gaps (node , mt );
15921590 return gaps [offset ];
15931591}
@@ -1618,7 +1616,7 @@ static inline void mas_parent_gap(struct ma_state *mas, unsigned char offset,
16181616
16191617ascend :
16201618 MAS_BUG_ON (mas , pmt != maple_arange_64 );
1621- meta_offset = ma_meta_gap (pnode , pmt );
1619+ meta_offset = ma_meta_gap (pnode );
16221620 meta_gap = pgaps [meta_offset ];
16231621
16241622 pgaps [offset ] = new ;
@@ -7260,7 +7258,7 @@ static void mas_validate_gaps(struct ma_state *mas)
72607258counted :
72617259 if (mt == maple_arange_64 ) {
72627260 MT_BUG_ON (mas -> tree , !gaps );
7263- offset = ma_meta_gap (node , mt );
7261+ offset = ma_meta_gap (node );
72647262 if (offset > i ) {
72657263 pr_err ("gap offset %p[%u] is invalid\n" , node , offset );
72667264 MT_BUG_ON (mas -> tree , 1 );
0 commit comments