]> git.baikalelectronics.ru Git - kernel.git/commit
block: stop using discards for zeroing
authorChristoph Hellwig <hch@lst.de>
Wed, 5 Apr 2017 17:21:20 +0000 (19:21 +0200)
committerJens Axboe <axboe@fb.com>
Sat, 8 Apr 2017 17:25:38 +0000 (11:25 -0600)
commit77e64c729ac6ff14d5fae7388ae544928fd83be2
tree5c8a92f1126616ffba426158c5ce62a48e9120ac
parent785f812dc879d65e4e6999a54b2a82763f011c3f
block: stop using discards for zeroing

Now that we have REQ_OP_WRITE_ZEROES implemented for all devices that
support efficient zeroing, we can remove the call to blkdev_issue_discard.
This means we only have two ways of zeroing left and can simplify the
code.

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>
block/blk-lib.c