diff options
author | Anand Jain <anand.jain@oracle.com> | 2017-11-29 18:53:43 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-01-22 16:08:14 +0100 |
commit | 38b5f68e98117daa221c7df813608f48c374aef4 (patch) | |
tree | caeb7034684a836cae7d340d89335e417c1f739e /fs/btrfs/volumes.h | |
parent | ccc8dc758da0deeddaec2d8a37524401654e99de (diff) | |
download | linux-stable-38b5f68e98117daa221c7df813608f48c374aef4.tar.gz linux-stable-38b5f68e98117daa221c7df813608f48c374aef4.tar.bz2 linux-stable-38b5f68e98117daa221c7df813608f48c374aef4.zip |
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>
Diffstat (limited to 'fs/btrfs/volumes.h')
-rw-r--r-- | fs/btrfs/volumes.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.h b/fs/btrfs/volumes.h index 294c4eb6a272..60588c259665 100644 --- a/fs/btrfs/volumes.h +++ b/fs/btrfs/volumes.h @@ -72,7 +72,6 @@ struct btrfs_device { int writeable; int in_fs_metadata; int missing; - int can_discard; int is_tgtdev_for_dev_replace; blk_status_t last_flush_error; int flush_bio_sent; |