From: Christoph Hellwig <hch@lst.de>
To: ernest.borowski.git@proton.me
Cc: Namjae Jeon <linkinjeon@kernel.org>,
Hyunchul Lee <hyc.lee@gmail.com>,
Baolin Liu <liubaolin12138@163.com>,
Christian Brauner <brauner@kernel.org>,
Christoph Hellwig <hch@lst.de>,
"Darrick J. Wong" <djwong@kernel.org>,
ntfs@lists.linux.dev, linux-fsdevel@vger.kernel.org,
linux-xfs@vger.kernel.org, linux-kernel@vger.kernel.org,
Zhan Xusheng <zhanxusheng1024@gmail.com>,
stable@vger.kernel.org
Subject: Re: [PATCH v2 02/11] iomap: add a helper to mark a range of a folio dirty
Date: Wed, 25 Nov 2026 06:50:16 +0100 [thread overview]
Message-ID: <20261125055016.GB20604@lst.de> (raw)
In-Reply-To: <20261124-b4-ntfs-delalloc-fixes-v2-2-f394c800ec03@proton.me>
On Tue, Nov 24, 2026 at 11:49:36PM +0100, Ernest Borowski via B4 Relay wrote:
> +void iomap_dirty_folio_range(struct folio *folio, size_t off, size_t len)
> +{
> + struct address_space *mapping = folio->mapping;
> +
> + ifs_alloc(mapping->host, folio, 0);
> + iomap_set_range_dirty(folio, off, len);
> + filemap_dirty_folio(mapping, folio);
> +}
> +EXPORT_SYMBOL_GPL(iomap_dirty_folio_range);
If we end up with this, iomap_dirty_folio should be rewritten
to call this instead of duplicating the logic.
But I'm a little sceptical the use of this can be correct. I'll try
to look into it, but it might take some time to understand the ntfs
code.
next prev parent reply other threads:[~2026-11-25 5:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 22:49 [PATCH v2 00/11] ntfs: delayed allocation accounting and stale data fixes, part 1 Ernest Borowski via B4 Relay
2026-11-24 22:49 ` [PATCH v2 01/11] iomap: punch out a run of clean blocks in one call Ernest Borowski via B4 Relay
2026-11-25 5:48 ` Christoph Hellwig
2026-11-24 22:49 ` [PATCH v2 02/11] iomap: add a helper to mark a range of a folio dirty Ernest Borowski via B4 Relay
2026-11-25 5:50 ` Christoph Hellwig [this message]
2026-11-24 22:49 ` [PATCH v2 03/11] ntfs: release delalloc reservations cut off by truncate Ernest Borowski via B4 Relay
2026-11-24 22:49 ` [PATCH v2 04/11] ntfs: do not consume delalloc reservations when filling holes Ernest Borowski via B4 Relay
2026-11-24 22:49 ` [PATCH v2 05/11] ntfs: keep delalloc reservations when a cluster allocation fails Ernest Borowski via B4 Relay
2026-11-24 22:49 ` [PATCH v2 06/11] ntfs: release the delalloc reservations of an evicted inode Ernest Borowski via B4 Relay
2026-11-24 22:49 ` [PATCH v2 07/11] ntfs: do not shift the cluster number of a delalloc run on split Ernest Borowski via B4 Relay
2026-11-24 22:49 ` [PATCH v2 08/11] ntfs: punch out the delalloc reservation of a failed buffered write Ernest Borowski via B4 Relay
2026-11-24 22:49 ` [PATCH v2 09/11] ntfs: zero new delalloc clusters even when writeback allocates them Ernest Borowski via B4 Relay
2026-11-24 22:49 ` [PATCH v2 10/11] ntfs: zero the rest of a new cluster after a short buffered write Ernest Borowski via B4 Relay
2026-11-24 22:49 ` [PATCH v2 11/11] ntfs: revalidate a buffered write's mapping after its clusters were allocated Ernest Borowski via B4 Relay
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=20261125055016.GB20604@lst.de \
--to=hch@lst.de \
--cc=brauner@kernel.org \
--cc=djwong@kernel.org \
--cc=ernest.borowski.git@proton.me \
--cc=hyc.lee@gmail.com \
--cc=linkinjeon@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=liubaolin12138@163.com \
--cc=ntfs@lists.linux.dev \
--cc=stable@vger.kernel.org \
--cc=zhanxusheng1024@gmail.com \
/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).