btrfs: factor reading progress out of btrfs_dev_replace_status
authorDavid Sterba <dsterba@suse.com>
Wed, 14 Jun 2017 14:24:56 +0000 (16:24 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Aug 2017 14:12:03 +0000 (16:12 +0200)
commit74b595fe672a4c4a40fe87c727304e2df3485f13
treefeaa2157743c43edbb9537e8b201162736bb6eac
parent0a52d108089f337ce20d74bf53f2e574c8ee43f2
btrfs: factor reading progress out of btrfs_dev_replace_status

We'll want to read the percentage value from dev_replace elsewhere, move
the logic to a separate helper.

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/dev-replace.c