diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2013-08-23 13:20:17 +0300 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-09-01 08:16:04 -0400 |
commit | 12bd2fc0d2f589f9605b8f497eee2e7724f3af24 (patch) | |
tree | df82467f721c91a82db67d6820dadb6815078648 /fs/btrfs/inode.c | |
parent | 53f10659f9994df8efe788f82d3da78d48e650c5 (diff) | |
download | linux-12bd2fc0d2f589f9605b8f497eee2e7724f3af24.tar.gz linux-12bd2fc0d2f589f9605b8f497eee2e7724f3af24.tar.bz2 linux-12bd2fc0d2f589f9605b8f497eee2e7724f3af24.zip |
Btrfs: add btrfs_alloc_device and switch to it
Currently btrfs_device is allocated ad-hoc in a few different places,
and as a result not all fields are initialized properly. In particular,
readahead state is only initialized in device_list_add (at scan time),
and not in btrfs_init_new_device (when the new device is added with
'btrfs dev add'). Fix this by adding an allocation helper and switch
everybody but __btrfs_close_devices to it. (__btrfs_close_devices is
dealt with in a later commit.)
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>
Diffstat (limited to 'fs/btrfs/inode.c')
0 files changed, 0 insertions, 0 deletions