Re: [PATCH v8 00/12] vfs: add O_CREAT|O_DIRECTORY to open*(2)

From: Christian Brauner

Date: Fri Nov 20 2026 - 03:59:59 EST


On Wed, Nov 18, 2026 at 08:42:47AM -0800, Shakeel Butt wrote:
> On Wed, Nov 18, 2026 at 05:30:20PM +0100, Christian Brauner wrote:
> > On Sat, Oct 24, 2026 at 11:35:27PM +0200, Jori Koolstra wrote:
> > > This series implements new semantics for the O_CREAT|O_DIRECTORY flag
> > > combination for open*(2): perform a mkdir and open the resulting
> > > directory; return a pinning fd (which mkdir does not).
> >
> > I've applied this to vfs-7.5.directory and folded a bunch of fixes into
> > it. Each fixup is attached as a git note to the commit I folded it into
> > so you can see what I massaged:
> >
> > git fetch https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git \
> > +vfs-7.5.directory:refs/remotes/vfs/vfs-7.5.directory \
> > +refs/notes/vfs-7.5.directory:refs/notes/vfs-7.5.directory
> > git log --notes=vfs-7.5.directory v7.4-rc1..vfs/vfs-7.5.directory
> >
> > The biggest change is kernfs. kernfs_iop_mkdir() now just looks up the
> > new node by name so the kernfs_syscall_ops change is gone and cgroup and
> > resctrl aren't touched at all anymore.
> >
> > The kernfs patches are in vfs-7.5.kernfs as "kernfs: instantiate the
> > dentry in kernfs_iop_mkdir()". I'll sent that out soon.
> >
> > I split out of 09/12, your kernfs_iattr_rwsem fix and the kernfs part of
> > 11/12. vfs-7.5.directory is based on the first one.
> >
> > I dropped "vfs: move ->create check in lookup_open() to before
> > try_break_deleg()". vfs_create_no_perm() does that check itself now.
> >
> > Let me know if I messed something up.
>
> Just a heads up from my side. I will be sending couple of kernfs series over the
> next couple of weeks. First one will be removing kernfs_iattr_rwsem from
> mkdir/rmdir paths and later ones will be trying to make open, lookup, stat and
> readdir operations lockless for kernfs.

Sounds good!