public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Nanzhe Zhao" <nzzhao@126.com>
To: lsf-pc@lists.linux-foundation.org
Cc: linux-fsdevel@vger.kernel.org,
	"Christoph Hellwig" <hch@infradead.org>,
	willy@infradead.org, yi.zhang@huaweicloud.com,
	jaegeuk@kernel.org, "Chao Yu" <chao@kernel.org>,
	"Barry Song" <21cnbao@gmail.com>,
	wqu@suse.com
Subject: [LSF/MM/BPF TOPIC] Large folio support: iomap framework changes versus filesystem-specific implementations
Date: Fri, 20 Feb 2026 20:59:38 +0800 (CST)	[thread overview]
Message-ID: <75f43184.d57.19c7b2269dd.Coremail.nzzhao@126.com> (raw)

Large folios can reduce per-page overhead and improve throughput for large buffered I/O, but enabling them in filesystems is not a mechanical “page → folio” conversion. The core difficulty is preserving correctness and performance when a folio must maintain subrange state, while existing filesystem code paths and the iomap buffered I/O framework make different assumptions about state tracking, locking lifetime, block mapping, and writeback semantics.

This session proposes a cross-filesystem discussion around two directions that are actively being explored:

Iomap approach: adopt iomap buffered I/O paths and benefit from iomap-style subrange folio state machinery. However, much of this machinery lives as static helpers inside iomap’s implementation (e.g., in buffered-io.c) and is not available as a reusable API, which pushes filesystems toward re-implementing similar logic. Moreover, iomap’s per-folio state relies on folio-private metadata storage, which can clash with filesystem-specific folio-private usage.


Native fs approach: keep native buffered I/O paths and implement filesystem-specific folio_state tracking and helpers to avoid whole-folio dirtying/write amplification and to match filesystem-private metadata (e.g., private flags). This avoids some iomap integration constraints and preserves filesystem-specific optimizations, but it increases filesystem-local complexity and long-term maintenance cost.


Using f2fs as a concrete instance (log-structured, indirect-pointer mapping, private folio flags), this session consolidates two recurring issues relevant across filesystems:

Per-folio state tracking: iomap subrange-state API exposure vs filesystem-local solution.
COW writeback support: minimal iomap extensions vs filesystem-local writeback for COW paths.

The goal is to converge on recommended design patterns and actionable next steps for f2fs/ext4/btrfs/others to enable large folios without correctness risks or performance regressions.

Best regards,
Nanzhe Zhao

Related Patches for Large Folios:

f2fs:
- https://lore.kernel.org/all/20250813092131.44762-1-nzzhao@126.com/
- https://lore.kernel.org/linux-f2fs-devel/20251120235446.1947532-1-jaegeuk@kernel.org/
- https://lore.kernel.org/linux-f2fs-devel/20260203091256.854842-1-nzzhao@126.com/

ext4:
- https://lore.kernel.org/all/20250512063319.3539411-1-yi.zhang@huaweicloud.com/

btrfs:
- https://lore.kernel.org/all/676154e5415d8d15499fb8c02b0eabbb1c6cef26.1745403878.git.wqu@suse.com/

             reply	other threads:[~2026-02-20 13:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-20 12:59 Nanzhe Zhao [this message]
2026-02-20 15:48 ` [LSF/MM/BPF TOPIC] Large folio support: iomap framework changes versus filesystem-specific implementations Christoph Hellwig
2026-02-20 18:40   ` Matthew Wilcox
2026-02-23 21:36     ` Jaegeuk Kim
2026-02-26 10:13       ` Barry Song
2026-02-27  2:02         ` Jaegeuk Kim
2026-02-27  2:43           ` Barry Song
2026-02-27 19:25             ` Jaegeuk Kim
2026-02-20 17:07 ` [Lsf-pc] " Jan Kara
2026-02-23  8:34 ` Iomap and compression? (Was "Re: [LSF/MM/BPF TOPIC] Large folio support: iomap framework changes versus filesystem-specific implementations") Qu Wenruo
2026-02-23 13:06   ` Christoph Hellwig
2026-02-23 21:53     ` Qu Wenruo
2026-02-24 14:58       ` Christoph Hellwig

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=75f43184.d57.19c7b2269dd.Coremail.nzzhao@126.com \
    --to=nzzhao@126.com \
    --cc=21cnbao@gmail.com \
    --cc=chao@kernel.org \
    --cc=hch@infradead.org \
    --cc=jaegeuk@kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=lsf-pc@lists.linux-foundation.org \
    --cc=willy@infradead.org \
    --cc=wqu@suse.com \
    --cc=yi.zhang@huaweicloud.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