Message ID | 20220407153855.21089-5-gniebler@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Turn delayed_nodes_tree into XArray and adjust usages | expand |
diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/delayed-inode.c index 9ee0c446478f..a235f0941444 100644 --- a/fs/btrfs/delayed-inode.c +++ b/fs/btrfs/delayed-inode.c @@ -270,8 +270,7 @@ static void __btrfs_release_delayed_node( * back up. We can delete it now. */ ASSERT(refcount_read(&delayed_node->refs) == 0); - radix_tree_delete(&root->delayed_nodes_xarray, - delayed_node->inode_id); + xa_erase(&root->delayed_nodes_xarray, delayed_node->inode_id); spin_unlock(&root->inode_lock); kmem_cache_free(delayed_node_cache, delayed_node); }
Signed-off-by: Gabriel Niebler <gniebler@suse.com> --- fs/btrfs/delayed-inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)