btrfs: fix raid56 scrub failed in xfstests btrfs/072
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>
Fri, 9 Jan 2015 01:39:40 +0000 (09:39 +0800)
committerChris Mason <clm@fb.com>
Tue, 27 Jan 2015 23:26:16 +0000 (15:26 -0800)
commit063c54dccdecb0479662778ddf54ee45aa55423d
tree7c82949f2554d2106ae86971a114b61972f7d3fc
parenta53f4f8e9c8ebe6c9ee3b34c368913aae9876e22
btrfs: fix raid56 scrub failed in xfstests btrfs/072

The xfstests btrfs/072 reports uncorrectable read errors in dmesg,
because scrub forgets to use commit_root for parity scrub routine
and scrub attempts to scrub those extents items whose contents are
not fully on disk.

To fix it, we just add the @search_commit_root flag back.

Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Reviewed-by: Miao Xie <miaoxie@huawei.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/scrub.c