]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: abstract out loading the tree root
authorJosef Bacik <josef@toxicpanda.com>
Wed, 15 Dec 2021 20:40:06 +0000 (15:40 -0500)
committerDavid Sterba <dsterba@suse.com>
Mon, 14 Mar 2022 12:13:48 +0000 (13:13 +0100)
commit18d7d1c6c36764925ae6ee14e314faa81bf6d1e8
tree1b4d433804230e904cf02e7f5b077acb8b263923
parent67e8f81f4efa899867ffc09ab439361285787bb1
btrfs: abstract out loading the tree root

We're going to be adding more roots that need to be loaded from the
super block, so abstract out the code to read the tree_root from the
super block, and use this helper for the chunk root as well.  This will
make it simpler to load the new trees in the future.

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