Btrfs: fix wrong fsid check of scrub
authorMiao Xie <miaox@cn.fujitsu.com>
Thu, 24 Jul 2014 03:37:08 +0000 (11:37 +0800)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:37:43 +0000 (13:37 -0700)
commit17a9be2f28595945ec9bfac0dd15b86891c1f1de
tree6d7e96a2a34af75da646b0dd4cd32e5882f60b9d
parent2fad4e83e12591eb3bd213875b9edc2d18e93383
Btrfs: fix wrong fsid check of scrub

All the metadata in the seed devices has the same fsid as the fsid
of the seed filesystem which is on the seed device, so we should check
them by the current filesystem. 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