Skip to content

Commit 77a119d

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 ea56f1a commit 77a119d

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

24692469
if (mirror_num >= 0 &&
24702470
btrfs_super_bytenr(sb) != btrfs_sb_offset(mirror_num)) {
2471-
btrfs_err(fs_info, "super offset mismatch %llu != %u",
2472-
btrfs_super_bytenr(sb), BTRFS_SUPER_INFO_OFFSET);
2471+
btrfs_err(fs_info, "super offset mismatch %llu != %llu",
2472+
btrfs_super_bytenr(sb), btrfs_sb_offset(mirror_num));
24732473
ret = -EINVAL;
24742474
}
24752475

0 commit comments

Comments
 (0)