public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jori Koolstra <jkoolstra@xs4all.nl>
To: Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>
Cc: "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Al Viro <viro@zeniv.linux.org.uk>
Subject: Re: VFS minor improvements policy
Date: Wed, 18 Mar 2026 21:55:51 +0100 (CET)	[thread overview]
Message-ID: <184693927.2263750.1773867351437@kpc.webmail.kpnmail.nl> (raw)
In-Reply-To: <20260317-ziffer-dahin-f1e651b5de70@brauner>


> > 
> > On Sat 14-03-26 14:24:23, Jori Koolstra wrote:
> > > I submitted a patch a few days ago about fixing the docstring of
> > > hash_name().  This is not a reminder of that patch, but today I came
> > > across something else in the VFS code, while trying to implement a
> > > mkdirat_fd syscall, that I thought might be slightly improved. We have
> > > this anonymous enum:
> > > 
> > >    enum {LAST_NORM, LAST_ROOT, LAST_DOT, LAST_DOTDOT};
> > > 
> > > but it is also used as an out parameter in filename_parentat() through
> > > int *type.  Now you have to look up what this int might hold, so I wonder
> > > should this struct not have an explicit type that filename_parentat()
> > > uses?
> > 
> > I guess this is a bit matter of personal preference. I personally would
> > prefer explicitely named enum in this case and use it where appropriate but
> 
> Me too and it should be cleaned up imho.
> 

I can send it in you like. I have also been working on trying to get re-open
masks work for O_PATH fds. It is easy for the OPENAT2_EMPTY_PATH case, but for
procfs magic links we might have to pass some state through nd_jump_link, so that
the nd is aware what the final open flag mask is. But I have to study the code a
bit more.

Best,
Jori.

  reply	other threads:[~2026-03-18 20:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-14 13:24 VFS minor improvements policy Jori Koolstra
2026-03-17  8:31 ` Jan Kara
2026-03-17 14:17   ` Christian Brauner
2026-03-18 20:55     ` Jori Koolstra [this message]
2026-03-18 20:51   ` Jori Koolstra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=184693927.2263750.1773867351437@kpc.webmail.kpnmail.nl \
    --to=jkoolstra@xs4all.nl \
    --cc=brauner@kernel.org \
    --cc=jack@suse.cz \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox