]> 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)
commitbffbd05d07e871185bf2115338409fb7cca791c9
treea8ed537e39112c1d6a07d41f33b2f83cb56aa345
parentdd9af5ad4d057b9e5faa2dce75652380205a2011
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