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 <mjguzik@gmail.com>
Link: https://patch.msgid.link/20251119144930.2911698-1-mjguzik@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
pull/1354/merge
Mateusz Guzik 2025-11-19 15:49:30 +01:00 committed by Christian Brauner
parent 7c179096e7
commit 8d79ec9e7f
No known key found for this signature in database
GPG Key ID: 91C61BC06578DCA2
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{