]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: enhance btrfs_find_device_by_user_input() to check device path
authorAnand Jain <anand.jain@oracle.com>
Sat, 13 Feb 2016 02:01:37 +0000 (10:01 +0800)
committerShan Hai <shan.hai@oracle.com>
Thu, 13 Jul 2017 05:20:32 +0000 (13:20 +0800)
commit5aaf417aec21d71ae179877b0d61c8e9f8e8a40c
treedff2816017c31a8e968d737f772acb3891d0c01c
parenta30ed98f7a98e2793f7607380c5cb1e40b44f5b7
btrfs: enhance btrfs_find_device_by_user_input() to check device path

The operation of device replace and device delete follows same steps upto
some depth with in btrfs kernel, however they don't share codes. This
enhancement will help replace and delete to share codes.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Orabug: 26287586

(Cherry picked from commit b3d1b1532ff9620ff5dba891a96f3e912005eb10)

Signed-off-by: Shan Hai <shan.hai@oracle.com>
Reviewed-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
fs/btrfs/dev-replace.c
fs/btrfs/volumes.c