diff options
| author | 2026-08-03 14:51:38 +0200 | |
|---|---|---|
| committer | 2026-09-17 12:34:39 +0200 | |
| commit | 161ce1e692d01ddec0522f24a29535ac59a3afaf (patch) | |
| tree | b08b111d0f0b6b957a2332f4fc164eaf3cea95a0 /scripts/Makefile.thinlto | |
| parent | Linux 7.3-rc1 (diff) | |
fs: avoid spurious dentry ref/unref cycle on open
Opening a file grabs a reference on the terminal dentry in
__legitimize_path(), then another one in do_dentry_open() and finally
drops the initial reference in terminate_walk().
That's 2 modifications which don't need to be there -- do_dentry_open()
can consume the already held reference instead.
When benchmarking on a 20-core vm using will-it-scale to open the same
file read-only, the results are (ops/s):
before: 4043375
after: 5629378 (+39%)
Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Link: https://patch.msgid.link/20260803125138.1937674-1-mjguzik@gmail.com
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
