Skip to content

Commit 8d79ec9

Browse files
mjguzikbrauner
authored andcommitted
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>
1 parent 7c17909 commit 8d79ec9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/namei.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1863,7 +1863,7 @@ static struct dentry *__lookup_slow(const struct qstr *name,
18631863
return dentry;
18641864
}
18651865

1866-
static struct dentry *lookup_slow(const struct qstr *name,
1866+
static noinline struct dentry *lookup_slow(const struct qstr *name,
18671867
struct dentry *dir,
18681868
unsigned int flags)
18691869
{

0 commit comments

Comments
 (0)