More than two years in the making, Linux 7.4 is poised to introduce a patch that amounts to a rather simple optimization to avoid unnecessary/duplicative work that can net some nice gains when opening files for reading...

More than two years in the making, Linux 7.4 is poised to introduce a patch that amounts to a rather simple optimization to avoid unnecessary/duplicative work that can net some nice gains when opening files for reading.
Open-source developer Mateusz Guzik has been leading the effort to optimize the Linux kernel's do_open() VFS function used as part of opening files from a pathname lookup. Currently there is a duplicate directory entry "dentry" for translating the path component to the disk inode as part of the file opening process, which Guzik is optimizing out that duplicative dentry.
Guzik explained in the patch that went through five revisions in the past two years:
"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."
It ends up being a rather significant benefit to avoid that unnecessary work as benchmarking on a 20-core VM with a will-it-scale benchmark of opening the same file in read-only mode, the operations per second increased by 39%.
It's a bit surprising such low-hanging fruit was left in the Linux kernel this long. At least the improvement should be in the stable kernel before the end of 2026.
The three dozen lines of code patch is queued into VFS.git's vfs-7.4.lookup Git branch. With the patch now in a formal VFS subsystem Git branch and labeled as far as "7.4" material, look for this optimization to be submitted for the upcoming Linux 7.4 merge window.
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | Linux Kernel Build Times Ready To Be Significantly Reduced With Latest Patches | 0 | 6.02 | 18-09-2026 |
| 2 | Linux 7.3 SMP Improvement To Help Reduce Latency, Improve Real-Time Performance | 0 | 10.19 | 17-08-2026 |
| 3 | IOmap Improvement For Linux 7.3 Takes EXT4 & XFS Performance Further | 0 | 13.69 | 18-08-2026 |
| 4 | Linux 7.3 Bringing A KCFI Optimization To Benefit Older Intel CPUs | 0 | 9.79 | 10-08-2026 |
| 5 | Important x86 Fixes Merged Ahead Of Linux 7.3-rc4 | 0 | 5.63 | 20-09-2026 |
| 6 | F2FS With Now Handle Multi-Device Flushes In Parallel With Linux 7.3 | 0 | 14.2 | 29-08-2026 |
| 7 | Linux 7.3-rc4 To Address Two Unfortunate Bugs With Btrfs | 0 | 9.72 | 20-09-2026 |
| 8 | Linux 7.3 x86/mm Lands Patches To Greatly Improve Latency-Sensitive Workloads | 0 | 9.76 | 22-08-2026 |
| 9 | Linux 7.3 MGLRU Change Helps Executable Code Stays In Memory, Improving Performance | 0 | 11.08 | 27-08-2026 |
| 10 | XFS Lands FALLOC_FL_WRITE_ZEROES For Efficiency Improvement In Linux 7.3 | 0 | 14.43 | 18-08-2026 |