btrfs: drop btrfs_device::can_discard to query directly
authorAnand Jain <anand.jain@oracle.com>
Wed, 29 Nov 2017 10:53:43 +0000 (18:53 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:14 +0000 (16:08 +0100)
commit38b5f68e98117daa221c7df813608f48c374aef4
treecaeb7034684a836cae7d340d89335e417c1f739e
parentccc8dc758da0deeddaec2d8a37524401654e99de
btrfs: drop btrfs_device::can_discard to query directly

We can query the bdev directly when needed at btrfs_discard_extent()
so drop btrfs_device::can_discard.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Suggested-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/extent-tree.c
fs/btrfs/volumes.c
fs/btrfs/volumes.h