]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb1e44d3eacd13cffd874644e86e4ea2688fd6b13
treecb1711da516b5e38471e5157a8bdaf85fad93ff9
parent2acfa624c5c05b61ffaff4fb404a31029a6fcb0a
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