}
}
-static inline struct maple_enode *ma_get_slot(
- struct maple_node *mn, unsigned char offset,
- enum maple_type type, struct maple_tree *mtree)
-{
- void **slots = ma_get_slots(mn, type);
-
- return rcu_dereference_check(slots[offset],
- lockdep_is_held(&mtree->ma_lock));
-}
-
-static inline struct maple_enode *_mte_get_slot(
- struct maple_enode *mn, unsigned char slot,
- enum maple_type type, struct maple_tree *mtree)
-{
- return ma_get_slot(mte_to_node(mn), slot, type, mtree);
-}
-
-static inline struct maple_enode *mte_get_slot(struct maple_enode *mn,
- unsigned char slot, struct maple_tree *mtree)
-{
- return _mte_get_slot(mn, slot, mte_node_type(mn), mtree);
-}
-
static inline struct maple_enode *mas_get_slot(struct ma_state *mas,
- unsigned char slot)
+ unsigned char offset)
{
- return mte_get_slot(mas->node, slot, mas->tree);
+ void **slots = ma_get_slots(mte_to_node(mas->node),
+ mte_node_type(mas->node));
+ return rcu_dereference_check(slots[offset],
+ lockdep_is_held(mas->tree->ma_lock));
}
/*