Linux filesystem development
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <djwong@kernel.org>
To: Joanne Koong <joannelkoong@gmail.com>
Cc: brauner@kernel.org, willy@infradead.org, hch@lst.de,
	miklos@szeredi.hu, linux-fsdevel@vger.kernel.org,
	fuse-devel@lists.linux.dev
Subject: Re: [PATCH v2 2/2] fuse: use iomap helper to mark folio uptodate
Date: Thu, 25 Jun 2026 11:57:50 -0700	[thread overview]
Message-ID: <20260625185750.GU6070@frogsfrogsfrogs> (raw)
In-Reply-To: <CAJnrk1aMe09bYZ_MiR-tr=umZ1nJxDx0B7DCs751zhxEyCL-7A@mail.gmail.com>

On Wed, Jun 24, 2026 at 05:35:13PM -0700, Joanne Koong wrote:
> On Wed, Jun 24, 2026 at 3:18 PM Darrick J. Wong <djwong@kernel.org> wrote:
> >
> > > --- a/fs/fuse/notify.c
> > > +++ b/fs/fuse/notify.c
> > > @@ -192,7 +194,7 @@ static int fuse_notify_store(struct fuse_conn *fc, unsigned int size,
> > >               if (!folio_test_uptodate(folio) && !err && folio_offset == 0 &&
> > >                   (nr_bytes == folio_size(folio) || file_size == end)) {
> > >                       folio_zero_segment(folio, nr_bytes, folio_size(folio));
> > > -                     folio_mark_uptodate(folio);
> > > +                     iomap_folio_mark_uptodate(folio);
> >
> > I wonder, if a fuse server stores to a range of dirty pagecache and
> > completely over-stores the dirty range, can that folio still get
> > scheduled for writeback?  I guess it's no big deal if that writeback
> > happens since the fuse server already knew about that content.
> >
> Yes I agree, I believe it still gets scheduled for writeback since it
> still has the dirty bit set.

Ok, seems fine to me then.  I hope there isn't a fuse server somewhere
depending on the "sorta immediate writeback of what I just stored via
this backchannel" behavior?

I mean, it would be crazy to implement an RNG based on jitter between
dirty->store->writeback, right??

Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>

--D

  reply	other threads:[~2026-06-25 18:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-24 21:29 [PATCH v2 0/2] iomap: add helper to keep uptodate bitmap in sync Joanne Koong
2026-06-24 21:29 ` [PATCH v2 1/2] iomap: add helper to mark folio uptodate Joanne Koong
2026-06-25 11:50   ` Christoph Hellwig
2026-06-25 18:55     ` Darrick J. Wong
2026-06-24 21:29 ` [PATCH v2 2/2] fuse: use iomap " Joanne Koong
2026-06-24 22:18   ` Darrick J. Wong
2026-06-25  0:35     ` Joanne Koong
2026-06-25 18:57       ` Darrick J. Wong [this message]
2026-06-25  7:46 ` [PATCH v2 0/2] iomap: add helper to keep uptodate bitmap in sync Christian Brauner
2026-06-25 21:54   ` Joanne Koong

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=20260625185750.GU6070@frogsfrogsfrogs \
    --to=djwong@kernel.org \
    --cc=brauner@kernel.org \
    --cc=fuse-devel@lists.linux.dev \
    --cc=hch@lst.de \
    --cc=joannelkoong@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox