diff options
Diffstat (limited to 'lib/btrfsprogs')
-rw-r--r-- | lib/btrfsprogs/btrfsutil/broken_btree.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/btrfsprogs/btrfsutil/broken_btree.go b/lib/btrfsprogs/btrfsutil/broken_btree.go index f2080f0..1fa84e7 100644 --- a/lib/btrfsprogs/btrfsutil/broken_btree.go +++ b/lib/btrfsprogs/btrfsutil/broken_btree.go @@ -8,7 +8,6 @@ import ( "context" "fmt" iofs "io/fs" - "math" "sync" "github.com/datawire/dlib/derror" @@ -22,12 +21,6 @@ import ( "git.lukeshu.com/btrfs-progs-ng/lib/diskio" ) -var maxKey = btrfsprim.Key{ - ObjectID: math.MaxUint64, - ItemType: math.MaxUint8, - Offset: math.MaxUint64, -} - type treeIndex struct { TreeRootErr error Items *containers.RBTree[btrfsprim.Key, treeIndexValue] @@ -282,7 +275,7 @@ func (bt *brokenTrees) TreeWalk(ctx context.Context, treeID btrfsprim.ObjID, err errHandle(&btrfstree.TreeError{ Path: btrfstree.TreePath{{ FromTree: treeID, - ToMaxKey: maxKey, + ToMaxKey: btrfsprim.MaxKey, }}, Err: index.TreeRootErr, }) |