block: cleanup __blkdev_issue_write_zeroes
authorKeith Busch <kbusch@kernel.org>
Fri, 23 Feb 2024 15:59:08 +0000 (07:59 -0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 24 Feb 2024 19:46:46 +0000 (12:46 -0700)
commit76a27e1b53b94b5a23c221434146fda3e9d8d8e0
tree039677b709567b8519fbccc3fe83e5c1780e9d72
parent5affe497c346343ecc42e6095b60dafe15e1453e
block: cleanup __blkdev_issue_write_zeroes

Use min to calculate the next number of sectors like everyone else.

Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20240223155910.3622666-3-kbusch@meta.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-lib.c