]> git.ipfire.org Git - thirdparty/kernel/linux.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)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Mar 2026 19:09:08 +0000 (20:09 +0100)
commitb52fe51f724385b3ed81e37e510a4a33107e8161
tree085d58c9b3edabef0b040cf3309d49059e4af7c8
parentb17b79ff896305fd74980a5f72afec370ee88ca4
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: 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>
fs/btrfs/disk-io.c