summaryrefslogtreecommitdiff
path: root/cmd/btrfs-fsck/pass2.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/btrfs-fsck/pass2.go')
-rw-r--r--cmd/btrfs-fsck/pass2.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd/btrfs-fsck/pass2.go b/cmd/btrfs-fsck/pass2.go
index 42060b5..8195737 100644
--- a/cmd/btrfs-fsck/pass2.go
+++ b/cmd/btrfs-fsck/pass2.go
@@ -11,9 +11,6 @@ import (
)
func pass2(fs *btrfs.FS, foundNodes map[btrfs.LogicalAddr]struct{}) {
- if true {
- return
- }
fmt.Printf("\nPass 2: orphaned nodes\n")
visitedNodes := make(map[btrfs.LogicalAddr]struct{})
@@ -26,6 +23,10 @@ func pass2(fs *btrfs.FS, foundNodes map[btrfs.LogicalAddr]struct{}) {
fmt.Printf("Pass 2: walk FS: error: %v\n", err)
})
+ if true {
+ return
+ }
+
orphanedNodes := make(map[btrfs.LogicalAddr]int)
for foundNode := range foundNodes {
if _, visited := visitedNodes[foundNode]; !visited {