]> git.baikalelectronics.ru Git - kernel.git/commit
block_dev: use blkdev_issue_zerout for hole punches
authorChristoph Hellwig <hch@lst.de>
Wed, 5 Apr 2017 17:21:11 +0000 (19:21 +0200)
committerJens Axboe <axboe@fb.com>
Sat, 8 Apr 2017 17:25:38 +0000 (11:25 -0600)
commite1241b49f758264b6a76353754147ee4a0cece1a
treea85625b4c9d3f7a4eefd151e0ec14c7e17658dd9
parente1eac55bf588f80513ecfae3f96def0031c818fd
block_dev: use blkdev_issue_zerout for hole punches

This gets us support for non-discard efficient write of zeroes (e.g. NVMe)
and prepares for removing the discard_zeroes_data flag.

Also remove a pointless discard support check, which is done in
blkdev_issue_discard already.

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>
fs/block_dev.c