]> git.hungrycats.org Git - linux/commit
btrfs: export and use btrfs_read_tree_root
authorJosef Bacik <josef@toxicpanda.com>
Wed, 20 Nov 2019 14:33:49 +0000 (06:33 -0800)
committerJosef Bacik <josef@toxicpanda.com>
Fri, 6 Dec 2019 16:34:48 +0000 (08:34 -0800)
commit869d7e5afbcebb1fed137fcaa59e5bda7bfbad94
treeb793251f6f63d0eb2145ec10942b17b5e059d5a0
parent915e61bf93cd40abba1f06ccd04a90644ce5c60a
btrfs: export and use btrfs_read_tree_root

log-tree uses btrfs_read_fs_root to load its log, but this just calls
btrfs_read_tree_root.  We don't save the log roots in our root cache, so
just export this helper and use it in the logging code.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/tree-log.c