]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit12040c4c6ab494cc0a84b69a639b5814650a8069
tree06d9e9b1907835aa5eb71d0d22d020ee82952495
parentd93ed003ab7f978e5fac4fb9bb1422174517eded
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