]> git.baikalelectronics.ru Git - kernel.git/commit
block: refactor discard bio size limiting
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2022 04:52:53 +0000 (06:52 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Apr 2022 01:49:59 +0000 (19:49 -0600)
commitb84ff087c207507756ef0733a48390788f5fc4a6
tree725631a2f3bff8b70df2d269576529e5c37c91de
parente104db30155c0a1e6fdcbb80b5bd396a51ee8fb0
block: refactor discard bio size limiting

Move all the logic to limit the discard bio size into a common helper
so that it is better documented.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Coly Li <colyli@suse.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20220415045258.199825-23-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-lib.c
block/blk.h