]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bvec: make the bvec_iter helpers inline functions
authorChristoph Hellwig <hch@lst.de>
Wed, 27 May 2026 15:10:22 +0000 (17:10 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 May 2026 13:59:11 +0000 (07:59 -0600)
commitf6fe52a7b18675d76d7f7dae0c16f412a4e33f9a
tree5efe34782009c2c85168ac8265dce96907fa52bd
parentadf3a5cef1a839e388dc382b3e07623f52746322
bvec: make the bvec_iter helpers inline functions

The macros are impossible to follow due to the lack of visual type
information and all the braces.  Replace them with inline helpers to
improve on that.  Because the calling conventions are a bit problematic
with a lot of passing structures by value, all the helpers are marked
as __always_inline so that they are force inlined.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <tom.leiming@gmail.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Link: https://patch.msgid.link/20260527151043.2349900-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/bvec.h