Skip to content

Commit f1ab017

Browse files
committed
btrfs: tree-checker: adjust error code for header level check
The whole tree checker returns EUCLEAN, except the one check in btrfs_verify_level_key(). This was inherited from the function that was moved from disk-io.c in 2cac5af ("btrfs: move btrfs_verify_level_key into tree-checker.c") but this should be unified with the rest. Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 50fecb8 commit f1ab017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/btrfs/tree-checker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2235,7 +2235,7 @@ int btrfs_verify_level_key(struct extent_buffer *eb,
22352235
btrfs_err(fs_info,
22362236
"tree level mismatch detected, bytenr=%llu level expected=%u has=%u",
22372237
eb->start, check->level, found_level);
2238-
return -EIO;
2238+
return -EUCLEAN;
22392239
}
22402240

22412241
if (!check->has_first_key)

0 commit comments

Comments
 (0)