]> git.hungrycats.org Git - linux/commit
Btrfs: fix wrong generation check of super block on a seed device
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 24 Jul 2014 03:37:09 +0000 (11:37 +0800)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Wed, 3 Dec 2014 15:16:22 +0000 (10:16 -0500)
commit62df89abcf139ccdbcba6eee9c4f578d0e2c364d
tree1589bba32f65b7653198768d156c84ca85556e8c
parent232861191e6998e24e4f4e28c161e67c58f84b82
Btrfs: fix wrong generation check of super block on a seed device

The super block generation of the seed devices is not the same as the
filesystem which sprouted from them because we don't update the super
block on the seed devices when we change that new filesystem. So we
should not use the generation of that new filesystem to check the super
block generation on the seed devices, Fix it.

Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
(cherry picked from commit 5f546063cee93047af90cf2756e023da9f9fca51)
fs/btrfs/scrub.c