Skip to content

Commit c167781

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 3e5fd8f commit c167781

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

25142514
if (mirror_num >= 0 &&
25152515
btrfs_super_bytenr(sb) != btrfs_sb_offset(mirror_num)) {
2516-
btrfs_err(fs_info, "super offset mismatch %llu != %u",
2517-
btrfs_super_bytenr(sb), BTRFS_SUPER_INFO_OFFSET);
2516+
btrfs_err(fs_info, "super offset mismatch %llu != %llu",
2517+
btrfs_super_bytenr(sb), btrfs_sb_offset(mirror_num));
25182518
ret = -EINVAL;
25192519
}
25202520

0 commit comments

Comments
 (0)