summaryrefslogtreecommitdiff
path: root/lib/btrfsprogs
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-12-23 20:58:53 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2022-12-23 20:58:53 -0700
commita5b98786cb30d759bebf4765c2a959003a63b499 (patch)
treeaded4cb05ad619051344753b6b5ecbf8636f68e9 /lib/btrfsprogs
parentb3264cfa1a48998bc9406c18339801c21a468f05 (diff)
rebuildnodes/keyio: Don't export readNode()
Diffstat (limited to 'lib/btrfsprogs')
-rw-r--r--lib/btrfsprogs/btrfsinspect/rebuildnodes/keyio/keyio.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/btrfsprogs/btrfsinspect/rebuildnodes/keyio/keyio.go b/lib/btrfsprogs/btrfsinspect/rebuildnodes/keyio/keyio.go
index fa69c78..916dc53 100644
--- a/lib/btrfsprogs/btrfsinspect/rebuildnodes/keyio/keyio.go
+++ b/lib/btrfsprogs/btrfsinspect/rebuildnodes/keyio/keyio.go
@@ -43,7 +43,7 @@ func NewHandle(file diskio.File[btrfsvol.LogicalAddr], sb btrfstree.Superblock,
}
}
-func (o *Handle) ReadNode(laddr btrfsvol.LogicalAddr) *diskio.Ref[btrfsvol.LogicalAddr, btrfstree.Node] {
+func (o *Handle) readNode(laddr btrfsvol.LogicalAddr) *diskio.Ref[btrfsvol.LogicalAddr, btrfstree.Node] {
if cached, ok := o.cache.Get(laddr); ok {
return cached
}
@@ -80,7 +80,7 @@ func (o *Handle) ReadItem(ptr ItemPtr) (item btrfsitem.Item, ok bool) {
if o.graph.Nodes[ptr.Node].Level != 0 || ptr.Idx < 0 {
return nil, false
}
- items := o.ReadNode(ptr.Node).Data.BodyLeaf
+ items := o.readNode(ptr.Node).Data.BodyLeaf
if ptr.Idx >= len(items) {
return nil, false
}