summaryrefslogtreecommitdiff
path: root/lib/btrfs
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-04-17 15:43:53 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2023-04-17 15:54:03 -0600
commit5e7fe4c3d25fdecb3b5d4ad5f752fb0a6bddac85 (patch)
tree60c445d748bc16c32ac9dc1775394f16500d3f16 /lib/btrfs
parentfdbe325563be8e223ed8b9f2a89426cf39f4903e (diff)
btrfs: FS: AcquireNode: Shorten errors
Diffstat (limited to 'lib/btrfs')
-rw-r--r--lib/btrfs/io3_btree.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/btrfs/io3_btree.go b/lib/btrfs/io3_btree.go
index c9e1d79..7518561 100644
--- a/lib/btrfs/io3_btree.go
+++ b/lib/btrfs/io3_btree.go
@@ -6,7 +6,6 @@ package btrfs
import (
"context"
- "fmt"
"git.lukeshu.com/btrfs-progs-ng/lib/btrfs/btrfsprim"
"git.lukeshu.com/btrfs-progs-ng/lib/btrfs/btrfstree"
@@ -44,7 +43,7 @@ func (fs *FS) AcquireNode(ctx context.Context, addr btrfsvol.LogicalAddr, exp bt
if nodeEntry.node != nil {
if err := exp.Check(nodeEntry.node); err != nil {
fs.cacheNodes.Release(addr)
- return nil, fmt.Errorf("btrfs.FS.AcquireNode: node@%v: %w", addr, err)
+ return nil, err
}
}