btrfs: simplify btrfs_dev_replace_kthread
authorDavid Sterba <dsterba@suse.com>
Wed, 14 Jun 2017 14:28:42 +0000 (16:28 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Aug 2017 14:12:03 +0000 (16:12 +0200)
commitf1b8a1e8c00a12000e5683f7312f2b1d877717ae
treecb1711da516b5e38471e5157a8bdaf85fad93ff9
parent74b595fe672a4c4a40fe87c727304e2df3485f13
btrfs: simplify btrfs_dev_replace_kthread

This function prints an informative message and then continues
dev-replace. The message contains a progress percentage which is read
from the status. The status is allocated dynamically, about 2600 bytes,
just to read the single value. That's an overkill. We'll use the new
helper and drop the allocation.

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