Skip to content

Commit b52fe51

Browse files
maharmstonekdave
authored andcommitted
btrfs: fix super block offset in error message in btrfs_validate_super()
Fix the superblock offset mismatch error message in btrfs_validate_super(): we changed it so that it considers all the superblocks, but the message still assumes we're only looking at the first one. The change from %u to %llu is because we're changing from a constant to a u64. Fixes: 069ec95 ("btrfs: Refactor btrfs_check_super_valid") Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Mark Harmstone <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent b17b79f commit b52fe51

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/btrfs/disk-io.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2531,8 +2531,8 @@ int btrfs_validate_super(const struct btrfs_fs_info *fs_info,
25312531

25322532
if (mirror_num >= 0 &&
25332533
btrfs_super_bytenr(sb) != btrfs_sb_offset(mirror_num)) {
2534-
btrfs_err(fs_info, "super offset mismatch %llu != %u",
2535-
btrfs_super_bytenr(sb), BTRFS_SUPER_INFO_OFFSET);
2534+
btrfs_err(fs_info, "super offset mismatch %llu != %llu",
2535+
btrfs_super_bytenr(sb), btrfs_sb_offset(mirror_num));
25362536
ret = -EINVAL;
25372537
}
25382538

0 commit comments

Comments
 (0)