]> www.infradead.org Git - users/jedix/linux-maple.git/commit
block: refacto blkdev_issue_zeroout
authorChristoph Hellwig <hch@lst.de>
Mon, 1 Jul 2024 16:51:18 +0000 (18:51 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 5 Jul 2024 06:53:15 +0000 (00:53 -0600)
commit99800ced26b9d87a918aa9824881bdb90a3c1b03
tree9b1c7d044902fa60706bb8f4a491d6ab9710201b
parentf6eacb26541ad1eabc40d7e9f5cd86bae7dc0b46
block: refacto blkdev_issue_zeroout

Split out two well-defined helpers for hardware supported Write Zeroes
and manually writing zeroes using the Write command.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20240701165219.1571322-9-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-lib.c