btrfs: initialize delayed inodes xarray without GFP_ATOMIC
authorFilipe Manana <fdmanana@suse.com>
Wed, 17 Apr 2024 15:06:13 +0000 (16:06 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 May 2024 19:31:07 +0000 (21:31 +0200)
commit905a95f3dd25abba64cad3e7a96947fcb9bf7006
tree93bb725dcdd601eb33e789e9a0c3ac66065d2296
parentde6f14e83e6221e3ef7e949deabe041240bc1829
btrfs: initialize delayed inodes xarray without GFP_ATOMIC

There's no need to initialize the delayed inodes xarray with a GFP_ATOMIC
flag because that actually does nothing on the xarray operations. That was
needed for radix trees, but for xarrays the allocation flags are passed as
the last argument to xa_store() (which we are using correctly).

So initialize the delayed inodes xarray with a simple xa_init().

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c