summaryrefslogtreecommitdiffstats
path: root/block/blk-exec.c
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2021-01-09 17:03:02 +0100
committerJens Axboe <axboe@kernel.dk>2021-01-25 16:58:24 +0100
commit3e1a88ec96259282b9a8b45c3f1fda7a3ff4f6ea (patch)
treee650e34e08f97cadb1d47e9650ff045006bac9be /block/blk-exec.c
parentiov_iter: optimise bvec iov_iter_advance() (diff)
downloadlinux-3e1a88ec96259282b9a8b45c3f1fda7a3ff4f6ea.tar.xz
linux-3e1a88ec96259282b9a8b45c3f1fda7a3ff4f6ea.zip
bio: add a helper calculating nr segments to alloc
Add a helper function calculating the number of bvec segments we need to allocate to construct a bio. It doesn't change anything functionally, but will be used to not duplicate special cases in the future. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-exec.c')
0 files changed, 0 insertions, 0 deletions