<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/simple-optimization-for-linux-7-4-can-open-files-for-reading-39-faster-zaaxl2fpm" -->

---
title: Simple Optimization For Linux 7.4 Can Open Files For...
description: A patch by Mateusz Guzik, in development for over two years across five revisions, removes duplicative dentry reference handling in the Linux kernel's...
canonical: https://daily.dev/posts/simple-optimization-for-linux-7-4-can-open-files-for-reading-39-faster-zaaxl2fpm
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Simple Optimization For Linux 7.4 Can Open Files For Reading ~39% Faster | daily.dev
og:description: A patch by Mateusz Guzik, in development for over two years across five revisions, removes duplicative dentry reference handling in the Linux kernel's...
og:url: https://daily.dev/posts/simple-optimization-for-linux-7-4-can-open-files-for-reading-39-faster-zaaxl2fpm
og:image: https://api.daily.dev/og/posts/ZaaXL2FPM.png
og:image:alt: Simple Optimization For Linux 7.4 Can Open Files For Reading ~39% Faster
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Simple Optimization For Linux 7.4 Can Open Files For Reading ~39% Faster

**[Phoronix](https://daily.dev/sources/phoronix)** · 2 min read · 0 upvotes · 0 comments

## Summary

A patch by Mateusz Guzik, in development for over two years across five revisions, removes duplicative dentry reference handling in the Linux kernel's do_open() VFS function used when opening files from a pathname lookup. Instead of grabbing and dropping redundant references across __legitimize_path(), do_dentry_open(), and terminate_walk(), do_dentry_open() now consumes an already held reference. Benchmarks on a 20-core VM using the will-it-scale tool showed a 39% increase in operations per second for opening the same file in read-only mode. The roughly three dozen line patch is queued in the VFS.git vfs-7.4.lookup branch and targeted for the Linux 7.4 merge window, with hopes of landing in stable kernels before the end of 2026.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.phoronix.com/news/Linux-7.4-Faster-Do-Open>

## Questions this post answers

### What optimization is being added to the Linux kernel's do_open() VFS function in version 7.4?

A patch by Mateusz Guzik removes a duplicate dentry reference taken during file opening. Previously, opening a file grabbed a reference in __legitimize_path(), grabbed another in do_dentry_open(), then dropped the initial one in terminate_walk(). The fix makes do_dentry_open() consume the already held reference instead, eliminating two unnecessary reference count modifications, queued in the vfs-7.4.lookup branch for the Linux 7.4 merge window.

_Track kernel performance changes like this VFS dentry fix as you plan upgrades, on daily.dev._

### How much faster does opening files become with the Linux kernel dentry optimization patch?

Operations per second increased by 39% when opening the same file in read-only mode, measured with the will-it-scale benchmark on a 20-core VM. The gain comes from removing redundant dentry reference grabs and drops in the do_open() path, a roughly three dozen line patch that took over two years and five revisions to land.

_Developers benchmarking kernel changes can follow performance wins like this one on daily.dev._

## Similar posts on daily.dev

- [Reading /proc/filesystems Is Surprisingly Done Very Often & Now As Much As 444% Faster](https://daily.dev/posts/reading-proc-filesystems-is-surprisingly-done-very-often-now-as-much-as-444-faster-budl1hkhp) · Phoronix · 27 upvotes · 0 comments
- [How a 40-Line Fix Eliminated a 400x Performance Gap](https://daily.dev/posts/how-a-40-line-fix-eliminated-a-400x-performance-gap-knjx43zh3) · Hacker News · 1 upvotes · 0 comments
- [Linux 7.2 Optimization Shows \+5% IOPS For EXT4 & XFS After Moving Around Two Lines Of Code](https://daily.dev/posts/linux-7-2-optimization-shows-5-iops-for-ext4-xfs-after-moving-around-two-lines-of-code-nx631vsmn) · Phoronix · 1 upvotes · 0 comments
- [Someone moved three lines of code in Linux 7.2 and got a 5% storage speed boost](https://daily.dev/posts/someone-moved-three-lines-of-code-in-linux-7-2-and-got-a-5-storage-speed-boost-4juxmldkx) · XDA Developers · 0 upvotes · 0 comments

---

Tags: [#open-source](https://daily.dev/tags/open-source), [#linux](https://daily.dev/tags/linux), [#performance](https://daily.dev/tags/performance)

[View this post on daily.dev](https://daily.dev/posts/simple-optimization-for-linux-7-4-can-open-files-for-reading-39-faster-zaaxl2fpm)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Simple Optimization For Linux 7.4 Can Open Files For Reading ~39% Faster","url":"https://daily.dev/posts/simple-optimization-for-linux-7-4-can-open-files-for-reading-39-faster-zaaxl2fpm","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/simple-optimization-for-linux-7-4-can-open-files-for-reading-39-faster-zaaxl2fpm"},"datePublished":"2026-09-19T16:33:49.813Z","dateModified":"2026-09-19T16:36:26.316Z","description":"A patch by Mateusz Guzik, in development for over two years across five revisions, removes duplicative dentry reference handling in the Linux kernel's...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e2769f2bcd8040a899a2bb7cc3132414?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e2769f2bcd8040a899a2bb7cc3132414?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Phoronix","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Phoronix","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/6a26ba379dd64932830aa0c9803dd7ee","url":"https://daily.dev/sources/phoronix"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/simple-optimization-for-linux-7-4-can-open-files-for-reading-39-faster-zaaxl2fpm","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"open-source,linux,performance","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Phoronix","item":"https://daily.dev/sources/phoronix"},{"@type":"ListItem","position":3,"name":"Simple Optimization For Linux 7.4 Can Open Files For Reading ~39% Faster"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/simple-optimization-for-linux-7-4-can-open-files-for-reading-39-faster-zaaxl2fpm#faq","mainEntity":[{"@type":"Question","name":"What optimization is being added to the Linux kernel's do_open() VFS function in version 7.4?","acceptedAnswer":{"@type":"Answer","text":"A patch by Mateusz Guzik removes a duplicate dentry reference taken during file opening. Previously, opening a file grabbed a reference in __legitimize_path(), grabbed another in do_dentry_open(), then dropped the initial one in terminate_walk(). The fix makes do_dentry_open() consume the already held reference instead, eliminating two unnecessary reference count modifications, queued in the vfs-7.4.lookup branch for the Linux 7.4 merge window. Track kernel performance changes like this VFS dentry fix as you plan upgrades, on daily.dev."}},{"@type":"Question","name":"How much faster does opening files become with the Linux kernel dentry optimization patch?","acceptedAnswer":{"@type":"Answer","text":"Operations per second increased by 39% when opening the same file in read-only mode, measured with the will-it-scale benchmark on a 20-core VM. The gain comes from removing redundant dentry reference grabs and drops in the do_open() path, a roughly three dozen line patch that took over two years and five revisions to land. Developers benchmarking kernel changes can follow performance wins like this one on daily.dev."}}]}
```

