]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scatterlist: inline sg_next()
authorCaleb Sander Mateos <csander@purestorage.com>
Wed, 16 Apr 2025 16:06:13 +0000 (10:06 -0600)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 May 2025 00:54:08 +0000 (17:54 -0700)
commit8d1d4b538bb12a858fa95a073c4aff31e79088ee
treee599ca3287de4121ad8d88e28d911c7f114bdc19
parent7d9b05277ae89b9306f9d71ec35a03ee59508334
scatterlist: inline sg_next()

sg_next() is a short function called frequently in I/O paths. Define it
in the header file so it can be inlined into its callers.

Link: https://lkml.kernel.org/r/20250416160615.3571958-1-csander@purestorage.com
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Cc: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/scatterlist.h
lib/scatterlist.c