btrfs: use scrub_pause_on/off() to reduce code in scrub_enumerate_chunks()
authorZhaolei <zhaolei@cn.fujitsu.com>
Wed, 5 Aug 2015 08:43:29 +0000 (16:43 +0800)
committerChris Mason <clm@fb.com>
Sun, 9 Aug 2015 14:07:12 +0000 (07:07 -0700)
commitb708ce969af3ceadca18aac5bffe48fe977473b1
tree24cc15f9fb322ab0473e2d827a104a1a9e5fb07f
parent0e22be890ef385de6816ec87a8a41c0b0f4a7a23
btrfs: use scrub_pause_on/off() to reduce code in scrub_enumerate_chunks()

Use new intruduced scrub_pause_on/off() can make this code block
clean and more readable.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/scrub.c