From: Dave Chinner <david@fromorbit.com>
To: Mateusz Guzik <mjguzik@gmail.com>
Cc: Mark Tinguely <mark.tinguely@oracle.com>,
Matthew Wilcox <willy@infradead.org>,
ocfs2-devel@lists.linux.dev, Mark Fasheh <mark@fasheh.com>,
Joel Becker <jlbec@evilplan.org>,
Joseph Qi <joseph.qi@linux.alibaba.com>,
Al Viro <viro@zeniv.linux.org.uk>,
Christian Brauner <brauner@kernel.org>, Jan Kara <jack@suse.cz>,
linux-fsdevel <linux-fsdevel@vger.kernel.org>
Subject: Re: [External] : Re: [WIP RFC PATCH] fs: retire I_WILL_FREE
Date: Thu, 4 Sep 2025 10:59:19 +1000 [thread overview]
Message-ID: <aLjkZ1P7vOcfsGvW@dread.disaster.area> (raw)
In-Reply-To: <CAGudoHFKmXJGRPedZ9Fq6jnfbiHzSwezd3Lr0uCbP7izs4dhGw@mail.gmail.com>
On Wed, Sep 03, 2025 at 05:19:04PM +0200, Mateusz Guzik wrote:
> On Wed, Sep 3, 2025 at 5:16 PM Mateusz Guzik <mjguzik@gmail.com> wrote:
> > On Wed, Sep 3, 2025 at 4:03 PM Mark Tinguely <mark.tinguely@oracle.com> wrote:
> > For now that would indeed work in the sense of providing the expected
> > behavior, but there is the obvious mismatch of the filesystem claiming
> > the inode should not be dropped (by returning 0) and but using a side
> > indicator to drop it anyway. This looks like a split-brain scenario
> > and sooner or later someone is going to complain about it when they do
> > other work in iput_final(). If I was maintaining the layer I would
> > reject the idea, but if the actual gatekeepers are fine with it...
> >
> > The absolute best thing to do long run is to move the i/o in
> > ->evict_inode, but someone familiar with the APIs here would do the
> > needful(tm) and that's not me.
>
> I mean the best thing to do in the long run is to move the the write
> to ->evict_inode, but I don't know how to do it and don't have any
> means to test ocfs2 anyway. Hopefully the ocfs2 folk will be willing
> to sort this out?
gfs2 calls write_inode_now() from ->evict_inode, so it is definitely
possible to do this.
However, given that ocfs2 is largely a legacy filesystem these days,
I suspect that you are going to have to do this conversion yourself
if you want this approach to progress in a timely manner. :/
-Dave.
--
Dave Chinner
david@fromorbit.com
next prev parent reply other threads:[~2025-09-04 0:59 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-02 14:54 [WIP RFC PATCH] fs: retire I_WILL_FREE Mateusz Guzik
2025-09-03 3:44 ` Matthew Wilcox
2025-09-03 14:03 ` [External] : " Mark Tinguely
2025-09-03 15:16 ` Mateusz Guzik
2025-09-03 15:19 ` Mateusz Guzik
2025-09-04 0:59 ` Dave Chinner [this message]
2025-09-04 2:00 ` Joseph Qi
2025-09-04 10:04 ` Jan Kara
2025-09-04 15:42 ` [PATCH] ocfs2: retire ocfs2_drop_inode() and I_WILL_FREE usage Mateusz Guzik
2025-09-04 16:15 ` [External] : " Mark Tinguely
2025-09-04 16:22 ` Mateusz Guzik
2025-09-08 1:51 ` Joseph Qi
2025-09-08 10:23 ` Jan Kara
2025-09-08 12:41 ` Joseph Qi
2025-09-08 13:54 ` Jan Kara
2025-09-08 15:39 ` Mateusz Guzik
2025-09-09 9:51 ` Jan Kara
2025-09-09 9:52 ` Mateusz Guzik
2025-09-09 9:57 ` Mateusz Guzik
2025-09-15 12:21 ` Christian Brauner
2025-09-09 1:23 ` Joseph Qi
2025-09-09 9:49 ` Jan Kara
2025-09-09 9:58 ` Joseph Qi
2025-09-15 12:21 ` Christian Brauner
2025-09-08 1:33 ` Joseph Qi
2025-09-05 13:29 ` Jan Kara
2025-09-05 14:07 ` [WIP RFC PATCH] fs: retire I_WILL_FREE Christian Brauner
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=aLjkZ1P7vOcfsGvW@dread.disaster.area \
--to=david@fromorbit.com \
--cc=brauner@kernel.org \
--cc=jack@suse.cz \
--cc=jlbec@evilplan.org \
--cc=joseph.qi@linux.alibaba.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=mark.tinguely@oracle.com \
--cc=mark@fasheh.com \
--cc=mjguzik@gmail.com \
--cc=ocfs2-devel@lists.linux.dev \
--cc=viro@zeniv.linux.org.uk \
--cc=willy@infradead.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.