Re: [PATCH v2 02/11] iomap: add a helper to mark a range of a folio dirty
From: Christoph Hellwig
Date: Wed Nov 25 2026 - 00:50:28 EST
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.