summaryrefslogtreecommitdiff
path: root/lib/btrfsutil/graph.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-28 23:50:32 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-03-17 22:30:37 -0400
commitd7a616119a4f5fbfa8d0f028e337037a48272048 (patch)
tree66f21c75d0a4d34b3af02754f5d98dc1eb222ca6 /lib/btrfsutil/graph.go
parentec1b90339bf712d08c417d735faa4ef40e99d452 (diff)
rebuildtrees: Move item-data from btrfsutil.KeyIO to scan
Diffstat (limited to 'lib/btrfsutil/graph.go')
-rw-r--r--lib/btrfsutil/graph.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/btrfsutil/graph.go b/lib/btrfsutil/graph.go
index a7c299a..45e9878 100644
--- a/lib/btrfsutil/graph.go
+++ b/lib/btrfsutil/graph.go
@@ -131,8 +131,8 @@ func (g Graph) insertTreeRoot(sb btrfstree.Superblock, treeID btrfsprim.ObjID) {
})
}
-func NewGraph(sb btrfstree.Superblock) *Graph {
- g := &Graph{
+func NewGraph(sb btrfstree.Superblock) Graph {
+ g := Graph{
Nodes: make(map[btrfsvol.LogicalAddr]GraphNode),
BadNodes: make(map[btrfsvol.LogicalAddr]error),
EdgesFrom: make(map[btrfsvol.LogicalAddr][]*GraphEdge),