rsxx: remove the discard_zeroes_data flag
authorChristoph Hellwig <[email protected]>
Wed, 5 Apr 2017 17:21:18 +0000 (19:21 +0200)
committerJens Axboe <[email protected]>
Sat, 8 Apr 2017 17:25:38 +0000 (11:25 -0600)
rsxx only supports discarding on large alignments, so the zeroing code
would always fall back to explicit writings of zeroes.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
drivers/block/rsxx/dev.c

index f81d70b39d1096da4ea5338cdcb5c8aa22defcb4..9c566364ac9c3c5890d466a26c0d7daf72eeb38c 100644 (file)
@@ -300,7 +300,6 @@ int rsxx_setup_dev(struct rsxx_cardinfo *card)
                                                RSXX_HW_BLK_SIZE >> 9);
                card->queue->limits.discard_granularity = RSXX_HW_BLK_SIZE;
                card->queue->limits.discard_alignment   = RSXX_HW_BLK_SIZE;
-               card->queue->limits.discard_zeroes_data = 1;
        }
 
        card->queue->queuedata = card;