From: Jan Kara <jack@suse.cz>
To: Jori Koolstra <jkoolstra@xs4all.nl>
Cc: "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Christian Brauner <brauner@kernel.org>,
Al Viro <viro@zeniv.linux.org.uk>, Jan Kara <jack@suse.cz>
Subject: Re: VFS minor improvements policy
Date: Tue, 17 Mar 2026 09:31:20 +0100 [thread overview]
Message-ID: <pjfdjimwb3br5wtut4a5q4xdys2mgf2d3hkajvinyphhoziaum@u55pnnlrfmgz> (raw)
In-Reply-To: <1046306323.1691628.1773494663411@kpc.webmail.kpnmail.nl>
Hi!
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
Al? apparently preferred brewity and used 'int' everywhere. The borderline
between "useless typedefs" and "documentation by types" is blurry. I'd say
trying to "fix" this would do more harm than good.
> However, my question is really this: what is the stance of vfs
> maintainers/reviewer for submitting these kind of patches? While going
> through the code in more depth I've noticed wrong/unhelpful docstrings
> here and there, and other minor "issues". Now, Greg KH has taught me to
> be really conservative with what counts as an improvement, for instance
> to not sneak-in white-space fixes in a patch.
If the documentation / comment is pointless or even wrong, that's
definitely worth a fix. They are just not treated with particularly high
priority but they are definitely needed.
Honza
--
Jan Kara <jack@suse.com>
SUSE Labs, CR
next prev parent reply other threads:[~2026-03-17 8:31 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 [this message]
2026-03-17 14:17 ` Christian Brauner
2026-03-18 20:55 ` Jori Koolstra
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=pjfdjimwb3br5wtut4a5q4xdys2mgf2d3hkajvinyphhoziaum@u55pnnlrfmgz \
--to=jack@suse.cz \
--cc=brauner@kernel.org \
--cc=jkoolstra@xs4all.nl \
--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