OSDN Git Service

block: inline hot paths of blk_account_io_*()
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 9 Oct 2021 12:25:41 +0000 (13:25 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 12:17:34 +0000 (06:17 -0600)
commitbe6bfe36db1795babe9d92178a47b2e02193cb0f
tree7660114e15888566a81a0c766c878c63910d29eb
parent8a709512eae7ccd5ba73e8634474caadbc9ebe76
block: inline hot paths of blk_account_io_*()

Extract hot paths of __blk_account_io_start() and
__blk_account_io_done() into inline functions, so we don't always pay
for function calls.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/b0662a636bd4cc7b4f84c9d0a41efa46a688ef13.1633781740.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk.h