btrfs: btrfs_init_new_device should use fs_info->dev_root
authorJeff Mahoney <jeffm@suse.com>
Wed, 22 Jun 2016 00:16:08 +0000 (20:16 -0400)
committerDavid Sterba <dsterba@suse.com>
Tue, 6 Dec 2016 15:06:57 +0000 (16:06 +0100)
commit5112febbc772830f8b1a981570d75c8cb4b93a36
tree06d9e9b1907835aa5eb71d0d22d020ee82952495
parent6bccf3ab1e1f0913268bfcd1c09cadb1f4f2857d
btrfs: btrfs_init_new_device should use fs_info->dev_root

btrfs_init_new_device only uses the root passed in via the ioctl to
start the transaction.  Nothing else that happens is related to whatever
root the user used to initiate the ioctl.  We can drop the root requirement
and just use fs_info->dev_root instead.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h