btrfs: cleanup fs_devices pointer usage in btrfs_trim_fs
authorAnand Jain <anand.jain@oracle.com>
Sun, 4 Jul 2021 12:04:57 +0000 (20:04 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 23 Aug 2021 11:18:59 +0000 (13:18 +0200)
commit23608d51a3b2a0e1e884eba7b1d1eadefe4aadcc
treef9e40fe6fa065566c5c6c8064bca366427f241ce
parent67d5e289a193c643a70ceda437c625e2bc876dbc
btrfs: cleanup fs_devices pointer usage in btrfs_trim_fs

Drop variable 'devices' (used only once) and add new variable for
the fs_devices, so it is used at two locations within btrfs_trim_fs()
function and also helps to access fs_devices->devices.

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/extent-tree.c