]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
llist: make llist_add_batch() a static inline
authorJens Axboe <axboe@kernel.dk>
Fri, 23 May 2025 19:13:11 +0000 (13:13 -0600)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 28 May 2025 02:40:34 +0000 (19:40 -0700)
commit375700bab5b150e876e42d894a9a7470881f8a61
tree76ac26092a63446e4cc8cb33ee9da04bc52f9fc3
parent5ef2dccfcca8d864e2f4c5b1628a22b446bc009a
llist: make llist_add_batch() a static inline

The function is small enough that it should be, and it's a (very) hot path
for io_uring.  Doing this actually reduces my vmlinux text size for my
standard build/test box.

Before:
axboe@r7625 ~/g/linux (test)> size vmlinux
   text    data     bss     dec     hex filename
19892174 5938310 2470432 28300916 1afd674 vmlinux

After:
axboe@r7625 ~/g/linux (test)> size vmlinux
   text    data     bss     dec     hex filename
19891878 5938310 2470436 28300624 1afd550 vmlinux

Link: https://lkml.kernel.org/r/f1d104c6-7ac8-457a-a53d-6bb741421b2f@kernel.dk
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/llist.h
lib/llist.c