]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: cleanup temporary variables when finding rotational device status
authorAnand Jain <anand.jain@oracle.com>
Thu, 13 Jan 2022 04:44:10 +0000 (12:44 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 14 Mar 2022 12:13:47 +0000 (13:13 +0100)
commit823f8e5c1f06a050af61137f171d1f1966b0982c
tree81ebfc7d2f333e70c729a55f29d34320de03344c
parent330a5bf4551784f2f0baef27f2c78550e40fc8a0
btrfs: cleanup temporary variables when finding rotational device status

The pointer to struct request_queue is used only to get device type
rotating or the non-rotating. So use it directly.

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