]> git.baikalelectronics.ru Git - kernel.git/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)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:37:44 +0000 (13:37 -0700)
commit3bf823c905f418ed8e9e25d3bf68f86d08efd5a8
treea8ed537e39112c1d6a07d41f33b2f83cb56aa345
parent484fd60ce70246b51ab027bd7267499218596929
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>
fs/btrfs/scrub.c