diff options
Diffstat (limited to 'lib/maple_tree.c')
| -rw-r--r-- | lib/maple_tree.c | 10 | 
1 files changed, 3 insertions, 7 deletions
| diff --git a/lib/maple_tree.c b/lib/maple_tree.c index f7153ade1be5..d0bea23fa4bc 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -584,13 +584,10 @@ static __always_inline bool ma_dead_node(const struct maple_node *node)   */  static __always_inline bool mte_dead_node(const struct maple_enode *enode)  { -	struct maple_node *parent, *node; +	struct maple_node *node;  	node = mte_to_node(enode); -	/* Do not reorder reads from the node prior to the parent check */ -	smp_rmb(); -	parent = mte_parent(enode); -	return (parent == node); +	return ma_dead_node(node);  }  /* @@ -1245,7 +1242,6 @@ static inline void mas_alloc_nodes(struct ma_state *mas, gfp_t gfp)  	if (mas->mas_flags & MA_STATE_PREALLOC) {  		if (allocated)  			return; -		BUG_ON(!allocated);  		WARN_ON(!allocated);  	} @@ -1353,7 +1349,7 @@ static void mas_node_count(struct ma_state *mas, int count)   * mas_start() - Sets up maple state for operations.   * @mas: The maple state.   * - * If mas->status == mas_start, then set the min, max and depth to + * If mas->status == ma_start, then set the min, max and depth to   * defaults.   *   * Return: | 
