[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250810044806.3433783-1-alexjlzheng@tencent.com>
Date: Sun, 10 Aug 2025 12:48:02 +0800
From: alexjlzheng@...il.com
To: brauner@...nel.org,
djwong@...nel.org
Cc: linux-xfs@...r.kernel.org,
linux-fsdevel@...r.kernel.org,
linux-kernel@...r.kernel.org,
Jinliang Zheng <alexjlzheng@...cent.com>
Subject: [PATCH 0/4] iomap: allow partial folio write with iomap_folio_state
From: Jinliang Zheng <alexjlzheng@...cent.com>
With iomap_folio_state, we can identify uptodate states at the block
level, and a read_folio reading can correctly handle partially
uptodate folios.
Therefore, when a partial write occurs, accept the block-aligned
partial write instead of rejecting the entire write.
This patchset has been tested by xfstests' generic and xfs group, and
there's no new failed cases compared to the lastest upstream version kernel.
Jinliang Zheng (4):
iomap: make sure iomap_adjust_read_range() are aligned with block_size
iomap: move iter revert case out of the unwritten branch
iomap: make iomap_write_end() return the number of written length again
iomap: don't abandon the whole thing with iomap_folio_state
fs/iomap/buffered-io.c | 68 +++++++++++++++++++++++++++++-------------
1 file changed, 47 insertions(+), 21 deletions(-)
--
2.49.0
Powered by blists - more mailing lists