From: Mateusz Guzik Date: Wed, 19 Nov 2025 14:49:30 +0000 (+0100) Subject: fs: mark lookup_slow() as noinline X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d79ec9e7f634e10c6cdc7f3999023bd988df1ad;p=thirdparty%2Flinux.git fs: mark lookup_slow() as noinline Otherwise it gets inlined notably in walk_component(), which convinces the compiler to push/pop additional registers in the fast path to accomodate existence of the inlined version. Shortens the fast path of that routine from 87 to 71 bytes. Signed-off-by: Mateusz Guzik Link: https://patch.msgid.link/20251119144930.2911698-1-mjguzik@gmail.com Signed-off-by: Christian Brauner --- diff --git a/fs/namei.c b/fs/namei.c index 5fbb05fb96b75..efa592a981556 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -1863,7 +1863,7 @@ again: return dentry; } -static struct dentry *lookup_slow(const struct qstr *name, +static noinline struct dentry *lookup_slow(const struct qstr *name, struct dentry *dir, unsigned int flags) {