]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dm: Simplify dm_io_complete()
authorDamien Le Moal <dlemoal@kernel.org>
Wed, 11 Jun 2025 01:14:57 +0000 (10:14 +0900)
committerMikulas Patocka <mpatocka@redhat.com>
Fri, 27 Jun 2025 10:59:22 +0000 (12:59 +0200)
commit548d88f74ed49c3c9dbd68550b7b335c2afa6413
tree6e94c4a8b9c899ba199c24c19bf904efda74183f
parentd142643c06bcbc8be173a4d749adf42dd798a617
dm: Simplify dm_io_complete()

The local variable first_requeue is not needed since it is always equal
to dm_io_flagged(io, DM_IO_WAS_SPLIT). Call __dm_io_complete() passing
this value directly and remove first_requeue.

Also declare dm_io_complete() as inline to make sure it is inlined in
its single call site, thus avoiding the cost of a function call.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm.c