]> 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)
commitf868456c593a4dc18bf19ec9bfa47e7f2246c597
tree1b4d433804230e904cf02e7f5b077acb8b263923
parentf03107e0a84cc995b0073d7f3de1de5727876cd5
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