Message ID | bed2a527314305ad67b662f0a485ae2dddba3edd.1743790644.git.dsterba@suse.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | Tree-checker unlikely annotations, error code updates | expand |
diff --git a/fs/btrfs/tree-checker.c b/fs/btrfs/tree-checker.c index 732e0ca8f447..5cd98776a612 100644 --- a/fs/btrfs/tree-checker.c +++ b/fs/btrfs/tree-checker.c @@ -2235,7 +2235,7 @@ int btrfs_verify_level_key(struct extent_buffer *eb, btrfs_err(fs_info, "tree level mismatch detected, bytenr=%llu level expected=%u has=%u", eb->start, check->level, found_level); - return -EIO; + return -EUCLEAN; } if (!check->has_first_key)
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 2cac5af16537 ("btrfs: move btrfs_verify_level_key into tree-checker.c") but this should be unified with the rest. Signed-off-by: David Sterba <dsterba@suse.com> --- fs/btrfs/tree-checker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)