Skip to content

Commit 4e97348

Browse files
maharmstonegregkh
authored andcommitted
btrfs: fix super block offset in error message in btrfs_validate_super()
[ Upstream commit b52fe51 ] 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 <wqu@suse.com> Signed-off-by: Mark Harmstone <mark@harmstone.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 8f2f2bd commit 4e97348

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
@@ -2503,8 +2503,8 @@ int btrfs_validate_super(const struct btrfs_fs_info *fs_info,
25032503

25042504
if (mirror_num >= 0 &&
25052505
btrfs_super_bytenr(sb) != btrfs_sb_offset(mirror_num)) {
2506-
btrfs_err(fs_info, "super offset mismatch %llu != %u",
2507-
btrfs_super_bytenr(sb), BTRFS_SUPER_INFO_OFFSET);
2506+
btrfs_err(fs_info, "super offset mismatch %llu != %llu",
2507+
btrfs_super_bytenr(sb), btrfs_sb_offset(mirror_num));
25082508
ret = -EINVAL;
25092509
}
25102510

0 commit comments

Comments
 (0)