]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Separate scrub_blocked_if_needed() to scrub_pause_on/off()
authorZhaolei <zhaolei@cn.fujitsu.com>
Wed, 5 Aug 2015 08:43:28 +0000 (16:43 +0800)
committerChris Mason <clm@fb.com>
Sun, 9 Aug 2015 14:07:12 +0000 (07:07 -0700)
commit76e1603118ecc02d1411902c6590dd5d88236447
tree30c5404f084d90260271db43a1e484e479d25e8c
parentb1cb2301a1f3a72f897962914e6b2d8e3b3825e0
btrfs: Separate scrub_blocked_if_needed() to scrub_pause_on/off()

It can reduce current duplicated code which is similar to
scrub_blocked_if_needed() but can not call it because little
different.
It also used by my next patch which is in same case.

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