block: factor out a blk_write_zeroes_limit helper
authorChristoph Hellwig <hch@lst.de>
Mon, 1 Jul 2024 16:51:15 +0000 (18:51 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 5 Jul 2024 06:53:15 +0000 (00:53 -0600)
commit73a768d5f95533574bb8ace34eb683a88c40509e
tree2847cd11af76c49f3f5f4af78151b99a6bcd4926
parent2f20872ed43185780a5f30581472599342c86d4a
block: factor out a blk_write_zeroes_limit helper

Contrary to the comment in __blkdev_issue_write_zeroes, nothing here
checks for a potential bi_size overflow.  Add a helper mirroring
the secure erase code for the check.

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-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-lib.c
This page took 0.050658 seconds and 4 git commands to generate.