]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: don't use the extent root in btrfs_chunk_alloc_add_chunk_item
authorJosef Bacik <josef@toxicpanda.com>
Fri, 5 Nov 2021 20:45:41 +0000 (16:45 -0400)
committerDavid Sterba <dsterba@suse.com>
Mon, 3 Jan 2022 14:09:48 +0000 (15:09 +0100)
commit14ebd5d8c080bc3c5cf4fb9b836f1ec1faba3120
treed7525fcea4068790ec4c7f9ad26a97352cb32e37
parent03c4c35f2432be1271a8d55b675d67a583dee496
btrfs: don't use the extent root in btrfs_chunk_alloc_add_chunk_item

We're just using the extent_root to set the chunk owner to
root_key->objectid, which is BTRFS_EXTENT_TREE_OBJECTID, so use that
directly instead of using the root.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c