btrfs: use q which is already obtained from bdev_get_queue
authorAnand Jain <anand.jain@oracle.com>
Tue, 4 Apr 2017 10:40:19 +0000 (18:40 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 18 Apr 2017 12:07:26 +0000 (14:07 +0200)
commite884f4f06e89616ba32badcc7d87762e39a792e5
tree92c048bb4292f0b45c928ff71e6f20d4c88b134c
parent42c61ab6760f5f6929ebf5a73b7e32b9aa51fbd5
btrfs: use q which is already obtained from bdev_get_queue

We have already assigned q from bdev_get_queue() so use it.
And rearrange the code for better view.

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