Re: [PATCH 3/3] btrfs: refactor btrfs_dev_replace_start for reuse

2016-04-25 Thread David Sterba
On Thu, Mar 24, 2016 at 06:48:14PM +0800, Anand Jain wrote: > A refactor patch, and avoids user input verification in the > btrfs_dev_replace_start(), and so this function can be reused. > > Signed-off-by: Anand Jain Added on top of the delete-by-id patchset as there's a dependency, plus the 1/3

[PATCH 3/3] btrfs: refactor btrfs_dev_replace_start for reuse

2016-03-24 Thread Anand Jain
A refactor patch, and avoids user input verification in the btrfs_dev_replace_start(), and so this function can be reused. Signed-off-by: Anand Jain --- fs/btrfs/dev-replace.c | 62 ++ fs/btrfs/dev-replace.h | 4 +++- fs/btrfs/ioctl.c | 2 +