summaryrefslogtreecommitdiff
path: root/pkg/btrfs
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-06-01 09:00:16 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-06-01 09:10:38 -0600
commit539787e5f70776db02e37f74048f9acec2171b0e (patch)
treee7246ba8a2a32111979c225d404164ef95133620 /pkg/btrfs
parentcf314d3f1f96e2c07b68a7171e27f58c899bcdbb (diff)
more
Diffstat (limited to 'pkg/btrfs')
-rw-r--r--pkg/btrfs/types_btree.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/btrfs/types_btree.go b/pkg/btrfs/types_btree.go
index 8e25eb4..9b06e5e 100644
--- a/pkg/btrfs/types_btree.go
+++ b/pkg/btrfs/types_btree.go
@@ -91,7 +91,7 @@ type Item struct {
}
// MaxItems returns the maximum possible valid value of
-// .Haad.NumItems.
+// .Head.NumItems.
func (node Node) MaxItems() uint32 {
bodyBytes := node.Size - uint32(binstruct.StaticSize(NodeHeader{}))
if node.Head.Level > 0 {