]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit25af73f3f0be94ecb6d4c73c11a257c46dd5ab48
treef9e40fe6fa065566c5c6c8064bca366427f241ce
parent33a3db6388f08fddf9230313b00a2b7fb93f9527
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