]> www.infradead.org Git - users/dwmw2/linux.git/commit
btrfs: drop bytenr_orig and fix comment in btrfs_scan_one_device()
authorAnand Jain <anand.jain@oracle.com>
Thu, 16 May 2024 03:10:23 +0000 (11:10 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 11 Jul 2024 13:33:18 +0000 (15:33 +0200)
commit70559abf6241c9ffe23e526a66960ac76d258e0e
tree090b822ab7c7cf15899a7b2f0244b6e446cc0414
parent4e660ca3a98d93180973426239e69ee44f4d7941
btrfs: drop bytenr_orig and fix comment in btrfs_scan_one_device()

Drop the single-use variable bytenr_orig and instead use btrfs_sb_offset()
in the function argument passing.

Fix a stale comment about not automatically fixing a bad primary
superblock from the backup mirror copies. Also, move the comment closer
to where the primary superblock read occurs.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c