]> www.infradead.org Git - users/hch/block.git/commit
block: add a blk_alloc_discard_bio helper
authorChristoph Hellwig <hch@lst.de>
Thu, 7 Mar 2024 13:24:37 +0000 (06:24 -0700)
committerChristoph Hellwig <hch@lst.de>
Fri, 3 May 2024 16:48:30 +0000 (18:48 +0200)
commit8aa3fbc41c5f3f09d598cb529d565754fdfdef00
tree2f47638ea69825f53f52e084cb8c2856993a4969
parent1da5038869205e3fc943a9bec19e125c77a10052
block: add a blk_alloc_discard_bio helper

Factor out a helper from __blkdev_issue_discard that chews off as much as
possible from a discard range and allocates a bio for it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/blk-lib.c
include/linux/bio.h