]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: fix super block offset in error message in btrfs_validate_super()
authorMark Harmstone <mark@harmstone.com>
Tue, 17 Feb 2026 17:35:42 +0000 (17:35 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2026 11:25:56 +0000 (13:25 +0200)
commit4e97348b4d63d19f914b82ac317036b14d2a0be9
tree2f7dedb4c0d82a473b5c70d5943ee4030c888b2b
parent8f2f2bd128a8d9edbc1e785760da54ada3df69b7
btrfs: fix super block offset in error message in btrfs_validate_super()

[ Upstream commit b52fe51f724385b3ed81e37e510a4a33107e8161 ]

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: 069ec957c35e ("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>
fs/btrfs/disk-io.c