]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fs: mark lookup_slow() as noinline
authorMateusz Guzik <mjguzik@gmail.com>
Wed, 19 Nov 2025 14:49:30 +0000 (15:49 +0100)
committerChristian Brauner <brauner@kernel.org>
Tue, 25 Nov 2025 09:04:38 +0000 (10:04 +0100)
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>
fs/namei.c

index 5fbb05fb96b7529542a6bebf2268294536de250e..efa592a9815563e654eb307430e4214308446ab4 100644 (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)
 {