btrfs: cleanup btrfs_rm_device() promote fs_devices pointer
authorAnand Jain <anand.jain@oracle.com>
Thu, 12 Apr 2018 02:29:30 +0000 (10:29 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:07:22 +0000 (18:07 +0200)
commitb51851971343da1ef8533fb6e174c9c539638dd8
tree8e6a95361d835435a8ea3c0ca78faa91c8533ac5
parent636d2c9d63228b3fb3b6a1efece663b06acf6391
btrfs: cleanup btrfs_rm_device() promote fs_devices pointer

This function uses fs_info::fs_devices number of time, however we
declare and use it only at the end, instead do it in the beginning of
the function and use it.

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