From: Jeff Layton <jlayton@kernel.org>
To: Amir Goldstein <amir73il@gmail.com>, Jan Kara <jack@suse.cz>
Cc: Christian Brauner <brauner@kernel.org>,
Al Viro <viro@zeniv.linux.org.uk>,
Chuck Lever <chuck.lever@oracle.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Steven Rostedt <rostedt@goodmis.org>,
linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH 0/2] fsnotify hooks consolidation
Date: Tue, 03 Mar 2026 07:45:32 -0500 [thread overview]
Message-ID: <cf1cb14e9b74bfd5ca5bfcaf4d6a820ee2d4324b.camel@kernel.org> (raw)
In-Reply-To: <20260302183741.1308767-1-amir73il@gmail.com>
On Mon, 2026-03-02 at 19:37 +0100, Amir Goldstein wrote:
> Jan,
>
> I've found this opportunity to reduce the amount of sprinkled
> fsnotify hooks.
>
> There are still a few fsnotify hooks sprinkled in some pseudo fs,
> but all those removed by this series are obvious boiler plate code
> and for most of these fs, this removes all of the custom hooks.
>
> I could send a series to convert each fs with its own patch,
> but to me that seems a bit unnecessary.
>
> WDYT?
> Amir.
>
> Amir Goldstein (2):
> fsnotify: make fsnotify_create() agnostic to file/dir
> fs: use simple_end_creating helper to consolidate fsnotify hooks
>
> drivers/android/binder/rust_binderfs.c | 11 +++--------
> drivers/android/binderfs.c | 10 +++-------
> fs/debugfs/inode.c | 5 +----
> fs/libfs.c | 14 ++++++++++++++
> fs/nfsd/nfsctl.c | 11 +++--------
> fs/tracefs/event_inode.c | 2 --
> fs/tracefs/inode.c | 5 +----
> include/linux/fs.h | 1 +
> include/linux/fsnotify.h | 8 +++++++-
> net/sunrpc/rpc_pipe.c | 10 +++-------
> 10 files changed, 36 insertions(+), 41 deletions(-)
Conceptually, this all seems fine.
My only gripe is that there is nothing mnemonic about the names
simple_done_creating() and simple_end_creating(). Since the only
difference are the notification bits, maybe
simple_done_creating_notify() is a better name?
Reviewed-by: Jeff Layton <jlayton@kernel.org>
next prev parent reply other threads:[~2026-03-03 12:45 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-02 18:37 [PATCH 0/2] fsnotify hooks consolidation Amir Goldstein
2026-03-02 18:37 ` [PATCH 1/2] fsnotify: make fsnotify_create() agnostic to file/dir Amir Goldstein
2026-03-02 18:37 ` [PATCH 2/2] fs: use simple_end_creating helper to consolidate fsnotify hooks Amir Goldstein
2026-03-02 22:28 ` Chuck Lever
2026-03-03 10:05 ` Amir Goldstein
2026-03-03 10:28 ` NeilBrown
2026-03-03 11:27 ` Amir Goldstein
2026-03-05 1:22 ` NeilBrown
2026-03-03 14:24 ` Chuck Lever
2026-03-03 15:01 ` Alice Ryhl
2026-03-03 12:45 ` Jeff Layton [this message]
2026-03-03 13:18 ` [PATCH 0/2] fsnotify hooks consolidation Amir Goldstein
2026-03-03 15:00 ` Christoph Hellwig
2026-03-03 15:05 ` Amir Goldstein
2026-03-03 15:07 ` Christoph Hellwig
2026-03-03 15:17 ` Amir Goldstein
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=cf1cb14e9b74bfd5ca5bfcaf4d6a820ee2d4324b.camel@kernel.org \
--to=jlayton@kernel.org \
--cc=amir73il@gmail.com \
--cc=brauner@kernel.org \
--cc=chuck.lever@oracle.com \
--cc=gregkh@linuxfoundation.org \
--cc=jack@suse.cz \
--cc=linux-fsdevel@vger.kernel.org \
--cc=rostedt@goodmis.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