Re: [PATCH] btrfs: Turn fs_roots_radix in btrfs_fs_info into an XArray

David Sterba
2022-04-27T20:14:33Z

On Tue, Apr 26, 2022 at 11:45:25PM +0200, Gabriel Niebler wrote:
> … rename it to simply fs_roots and adjust all usages of this object to use
> the XArray API, because it is notionally easier to use and unserstand, as
> it provides array semantics, and also takes care of locking for us,
> further simplifying the code.
>
> Also do some refactoring, esp. where the API change requires largely
> rewriting some functions, anyway.
>
> Signed-off-by: Gabriel Niebler <gniebler@suse.com>

I've lightly reviewed the patch so I can put add it for testing though
I'll keep the review open for Nikolay.

Otherwise, this is the last conversion of radix_tree_root, thanks.
There's no use of the radix_tree_* API anymore.