1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-11 17:10:13 +00:00

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>
This commit is contained in:
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

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