diff options
author | Christoph Hellwig <hch@lst.de> | 2017-04-05 13:21:23 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-08 13:25:38 -0400 |
commit | 48920ff2a5a940cd07d12cc79e4a2c75f1185aee (patch) | |
tree | 0505a85fce20a0d34c5d4bbc71ba8771a037e209 /drivers/target | |
parent | 45c21793a6601b29926d67f7a07fe4077a45072e (diff) |
block: remove the discard_zeroes_data flag
Now that we use the proper REQ_OP_WRITE_ZEROES operation everywhere we can
kill this hack.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_device.c b/drivers/target/target_core_device.c index c754ae33bf7b..d2f089cfa9ae 100644 --- a/drivers/target/target_core_device.c +++ b/drivers/target/target_core_device.c | |||
@@ -851,7 +851,7 @@ bool target_configure_unmap_from_queue(struct se_dev_attrib *attrib, | |||
851 | attrib->unmap_granularity = q->limits.discard_granularity / block_size; | 851 | attrib->unmap_granularity = q->limits.discard_granularity / block_size; |
852 | attrib->unmap_granularity_alignment = q->limits.discard_alignment / | 852 | attrib->unmap_granularity_alignment = q->limits.discard_alignment / |
853 | block_size; | 853 | block_size; |
854 | attrib->unmap_zeroes_data = q->limits.discard_zeroes_data; | 854 | attrib->unmap_zeroes_data = 0; |
855 | return true; | 855 | return true; |
856 | } | 856 | } |
857 | EXPORT_SYMBOL(target_configure_unmap_from_queue); | 857 | EXPORT_SYMBOL(target_configure_unmap_from_queue); |