btrfs: move volume_mutex into the btrfs_rm_device()
authorAnand Jain <anand.jain@oracle.com>
Mon, 6 Nov 2017 02:28:00 +0000 (10:28 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:11 +0000 (16:08 +0100)
commit2c9973847fa0230ea82935a9c486cb38ef599893
treef3e2f3fdc7ccd7ada0cb0b4d3c49dd3f19545966
parent96b09dde92515956c992c1b330f00399487f47b3
btrfs: move volume_mutex into the btrfs_rm_device()

A cleanup patch no functional change, we hold volume_mutex before
calling btrfs_rm_device, so move it into the function itself.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c
fs/btrfs/volumes.c