Christoph Hellwig 73a768d5f9 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>
2024-07-05 00:53:15 -06:00
..
2024-05-21 13:02:56 -07:00
2024-06-18 09:22:45 -06:00
2024-06-18 09:22:45 -06:00
2024-05-14 17:25:36 -07:00
2024-06-18 09:22:45 -06:00
2023-06-26 12:47:20 -07:00
2024-06-28 10:29:42 -06:00
2023-06-30 11:57:07 -07:00
2024-06-26 09:37:35 -06:00
2024-05-21 13:02:56 -07:00
2024-03-11 11:43:44 -07:00
2024-06-28 10:29:42 -06:00