OSDN Git Service

btrfs: use existing cur_devices, cleanup btrfs_rm_device
authorAnand Jain <anand.jain@oracle.com>
Thu, 12 Apr 2018 02:29:31 +0000 (10:29 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:23:13 +0000 (18:23 +0200)
commit41a52a0f1bdcb3a17e2b384d6b6368a9590f9a58
treed93d31bf1d204d6b6bbd2b0eccee38f7bb13e8ed
parentb6ed73bcb1c4c8c742452a4cc03868ce4e7455c8
btrfs: use existing cur_devices, cleanup btrfs_rm_device

Instead of de-referencing the device->fs_devices use cur_devices
which points to the same fs_devices and does not change.

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