From 87e107c3a5ed5793609ef8cc7c0f43209026902d Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 22 Mar 2023 10:22:43 -0400 Subject: btrfsutil: OldRebuiltForrest: Migrate to consume the new btree.Forrest API --- lib/btrfsutil/old_rebuilt_forrest.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/btrfsutil') diff --git a/lib/btrfsutil/old_rebuilt_forrest.go b/lib/btrfsutil/old_rebuilt_forrest.go index a462a60..ae63001 100644 --- a/lib/btrfsutil/old_rebuilt_forrest.go +++ b/lib/btrfsutil/old_rebuilt_forrest.go @@ -179,13 +179,13 @@ func (bt *OldRebuiltForrest) rawTreeWalk(ctx context.Context, treeID btrfsprim.O cacheEntry.RootErr = err return } - root, err := btrfstree.OldLookupTreeRoot(ctx, bt.TreeSearch, *sb, treeID) + root, err := btrfstree.LookupTreeRoot(ctx, bt, *sb, treeID) if err != nil { cacheEntry.RootErr = err return } tree := &btrfstree.RawTree{ - Forrest: btrfstree.TreeOperatorImpl{NodeSource: bt.inner}, + Forrest: btrfstree.RawForrest{NodeSource: bt.inner}, TreeRoot: *root, } -- cgit v1.2.3-2-g168b