Btrfs: add alloc_fs_devices and switch to it
authorIlya Dryomov <idryomov@gmail.com>
Mon, 12 Aug 2013 11:33:03 +0000 (14:33 +0300)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:16:05 +0000 (08:16 -0400)
commit2208a378f35fea7a1b778bf856edb971fb7ea9e8
treef99434dcc1f923d579290b4fb997b983707c93fd
parent12bd2fc0d2f589f9605b8f497eee2e7724f3af24
Btrfs: add alloc_fs_devices and switch to it

In the spirit of btrfs_alloc_device, add a helper for allocating and
doing some common initialization of btrfs_fs_devices struct.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/volumes.c