return false;
if (gfpflags_allow_blocking(gfp)) {
- spin_unlock(&ms->tree->lock);
+ mtree_unlock(ms->tree);
maple_new_node(ms, ma_get_alloc_cnt(ms), gfp);
- spin_lock(&ms->tree->lock);
+ mtree_lock(ms->tree);
} else {
maple_new_node(ms, ma_get_alloc_cnt(ms), gfp);
}
mt->flags |= MAP_STATE_SPLIT_ON_FULL;
- spin_lock(&ms.tree->lock);
+ mtree_lock(ms.tree);
retry:
walked = _maple_setup_insert(&ms);
if (walked != NULL)
goto retry;
already_exists:
- spin_unlock(&ms.tree->lock);
+ mtree_unlock(ms.tree);
if (mas_is_err(&ms))
return xa_err(ms.node);
{
MAP_STATE(ms, mt, 0, 0);
- spin_lock(&mt->lock);
+ mtree_lock(mt);
if (xa_is_node(mt->root)) {
ms.node = ma_to_node(mt->root);
_maple_destroy_walk(&ms);
}
mt->root = NULL;
- spin_unlock(&mt->lock);
+ mtree_unlock(mt);
return 0;
}