diff options
| author | Mateusz Guzik <mjguzik@gmail.com> | 2025-11-19 15:49:30 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-11-25 10:04:38 +0100 |
| commit | 8d79ec9e7f634e10c6cdc7f3999023bd988df1ad (patch) | |
| tree | b2ff4e358a4d89590d075d596c1322af964789b7 | |
| parent | 7c179096e77eca210caf43abfcf3e556030fea3b (diff) | |
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>
| -rw-r--r-- | fs/namei.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/namei.c b/fs/namei.c index 5fbb05fb96b7..efa592a98155 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) { |
