summaryrefslogtreecommitdiff
path: root/lib/btrfsutil/skinny_paths.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-03-02 17:25:49 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-03-15 08:03:53 -0600
commit7349ff1a01b29eae7f7e769fe44548f09c253d2b (patch)
tree9c90528f551f2f5fdb1f21cf725d984ddfcfd0c0 /lib/btrfsutil/skinny_paths.go
parent135adfcd6a0593218daec2657603f61ae49c6130 (diff)
tree-wide: Have "interior" rather than "internal" be the antonym of "leaf"
Because "internal" has a meaning in the Go world, and it's confusing.
Diffstat (limited to 'lib/btrfsutil/skinny_paths.go')
-rw-r--r--lib/btrfsutil/skinny_paths.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/btrfsutil/skinny_paths.go b/lib/btrfsutil/skinny_paths.go
index 1695990..da86273 100644
--- a/lib/btrfsutil/skinny_paths.go
+++ b/lib/btrfsutil/skinny_paths.go
@@ -60,13 +60,13 @@ func (a *SkinnyPathArena) getItem(parent btrfstree.TreePath, itemIdx int) (btrfs
return btrfstree.TreePathElem{}, err
}
if node.Data.Head.Level > 0 {
- if itemIdx >= len(node.Data.BodyInternal) {
+ if itemIdx >= len(node.Data.BodyInterior) {
panic("should not happen")
}
- for i, item := range node.Data.BodyInternal {
+ for i, item := range node.Data.BodyInterior {
toMaxKey := parent.Node(-1).ToMaxKey
- if i+1 < len(node.Data.BodyInternal) {
- toMaxKey = node.Data.BodyInternal[i+1].Key.Mm()
+ if i+1 < len(node.Data.BodyInterior) {
+ toMaxKey = node.Data.BodyInterior[i+1].Key.Mm()
}
elem := btrfstree.TreePathElem{
FromTree: node.Data.Head.Owner,