btrfs: use a temporary variable for fs_devices in btrfs_init_new_device
authorAnand Jain <anand.jain@oracle.com>
Tue, 3 Jul 2018 05:14:50 +0000 (13:14 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 6 Aug 2018 11:12:42 +0000 (13:12 +0200)
commit5da54bc13801d378bf2e868beb623fc13ba40a83
treec5dd3bcca028bcd05a33136740af60a67276c7be
parent389305b2aa68723c754f88d9dbd268a400e10664
btrfs: use a temporary variable for fs_devices in btrfs_init_new_device

There are many instances of the %fs_info->fs_devices pointer
dereferences, use a temporary variable instead.

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