linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: "Darrick J. Wong" <djwong@kernel.org>
Cc: Brian Foster <bfoster@redhat.com>,
	linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org
Subject: Re: [PATCH 2/6] iomap, xfs: lift zero range hole mapping flush into xfs
Date: Fri, 7 Nov 2025 05:55:28 -0800	[thread overview]
Message-ID: <aQ36UJ6qyCjUM41M@infradead.org> (raw)
In-Reply-To: <20251105222350.GO196362@frogsfrogsfrogs>

On Wed, Nov 05, 2025 at 02:23:50PM -0800, Darrick J. Wong wrote:
> Then we change the interface so that ->iomap_begin always sets read_map
> to a mapping from which file data can be read, and write_map is always
> set to a mapping into which file data can be written.  If a filesystem
> doesn't support out of place writes, then it can ignore write_map and
> write_map.type will be IOMAP_NULL.

Please don't.  The whole two maps in one operation thing was a giant
mistake, let's not double down on that.  The only places that actually
need it is the buffered write read-modify-write code, and the unshare
and zeroing code that reuse that in ugly ways.  We need to untangle
that properly:

 - for the buffered write read-modify-write just do a separate iomap
   operation for the partial read
 - for zeroing do a separate query for holes and for the overwrite
   space allocation if the file system needs it due to COW
 - same for unshare


  parent reply	other threads:[~2025-11-07 13:55 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-16 19:02 [PATCH 0/6] iomap, xfs: improve zero range flushing and lookup Brian Foster
2025-10-16 19:02 ` [PATCH 1/6] iomap: replace folio_batch allocation with stack allocation Brian Foster
2025-11-05  0:07   ` Darrick J. Wong
2025-11-05 15:27     ` Brian Foster
2025-11-05 21:41       ` Darrick J. Wong
2025-11-06 15:51         ` Brian Foster
2025-11-06 15:58           ` Darrick J. Wong
2025-10-16 19:02 ` [PATCH 2/6] iomap, xfs: lift zero range hole mapping flush into xfs Brian Foster
2025-11-05  0:31   ` Darrick J. Wong
2025-11-05 15:33     ` Brian Foster
2025-11-05 22:23       ` Darrick J. Wong
2025-11-06 15:52         ` Brian Foster
2025-11-06 23:32           ` Darrick J. Wong
2025-11-07 13:52             ` Brian Foster
2025-11-07 13:59             ` Christoph Hellwig
2025-11-07 13:57           ` Christoph Hellwig
2025-11-07 13:55         ` Christoph Hellwig [this message]
2025-10-16 19:03 ` [PATCH 3/6] xfs: flush eof folio before insert range size update Brian Foster
2025-11-05  0:14   ` Darrick J. Wong
2025-11-05 15:34     ` Brian Foster
2025-11-05 22:15       ` Darrick J. Wong
2025-10-16 19:03 ` [PATCH 4/6] xfs: look up cow fork extent earlier for buffered iomap_begin Brian Foster
2025-11-05 22:26   ` Darrick J. Wong
2025-10-16 19:03 ` [PATCH 5/6] xfs: only flush when COW fork blocks overlap data fork holes Brian Foster
2025-10-16 19:03 ` [PATCH 6/6] xfs: replace zero range flush with folio batch Brian Foster
2025-11-05 22:37   ` Darrick J. Wong
2025-11-06 15:53     ` Brian Foster

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=aQ36UJ6qyCjUM41M@infradead.org \
    --to=hch@infradead.org \
    --cc=bfoster@redhat.com \
    --cc=djwong@kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).