iomap: incremental advance conversion -- phase 2
Status from this message: Applied to the vfs-6.15.iomap branch of the vfs/vfs.git tree.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest12 patches 1 replyApplied
- v212 patches 17 repliesSuperseded
- v110 patches 13 repliesSuperseded
Changes in v3 from the cover letter
- Fixed whitespace in iomap_iter_advance_full().
- Rebased onto vfs-6.15.iomap.
v2: https://lore.kernel.org/linux-fsdevel/[email protected]/
- Push dax_iomap_iter() advance changes down into type specific helpers (new patch).
- Added patch for iomap_iter_advance_full() helper.
- Various minor cleanups.
v1: https://lore.kernel.org/linux-fsdevel/[email protected]/
Patches in v3 Applied
Reviews trailers per patch
All 12 patches have a Reviewed-by or Acked-by.
| Patch | Christoph Hellwig | Darrick J. Wong |
|---|---|---|
| 1/12 | R-b | R-b |
| 2/12 | R-b | |
| 3/12 | R-b | |
| 4/12 | R-b | R-b |
| 5/12 | R-b | |
| 6/12 | R-b | |
| 7/12 | R-b | |
| 8/12 | R-b | |
| 9/12 | R-b | |
| 10/12 | R-b | |
| 11/12 | R-b | R-b |
| 12/12 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 00/12] iomap: incremental advance conversion -- phase 2
Hi all,
Here's phase 2 of the incremental iter advance conversions. This updates all remaining iomap operations to advance the iter within the operation and thus removes the need to advance from the core iomap iterator. Once all operations are switched over, the core advance code is removed and the processed field is renamed to reflect that it is now a pure status code.
For context, this was first introduced in a previous series [1] that focused mainly on the core mechanism and iomap buffered write. This is because original impetus was to facilitate a folio batch mechanism where a filesystem can optionally provide a batch of folios to process for a given mapping (i.e. zero range of an unwritten mapping with dirty folios in pagecache). That is still WIP, but the broader point is that this was originally intended as an optional mode until consensus that fell out of discussion was that it would be preferable to convert over everything. This presumably facilitates some other future work and simplifies semantics in the core iteration code.
Patches 1-3 convert over iomap buffered read, direct I/O and various other remaining ops (swap, etc.). Patches 4-9 convert over the various DAX iomap operations. Finally, patches 10-12 introduce some cleanups now that all iomap operations have updated iteration semantics.
Thoughts, reviews, flames appreciated.
Brian
[1] https://lore.kernel.org/linux-fsdevel/[email protected]/
v3:
- Fixed whitespace in iomap_iter_advance_full().
- Rebased onto vfs-6.15.iomap.
v2: https://lore.kernel.org/linux-fsdevel/[email protected]/
- Push dax_iomap_iter() advance changes down into type specific helpers (new patch).
- Added patch for iomap_iter_advance_full() helper.
- Various minor cleanups.
v1: https://lore.kernel.org/linux-fsdevel/[email protected]/
Brian Foster (12):
iomap: advance the iter directly on buffered read
iomap: advance the iter on direct I/O
iomap: convert misc simple ops to incremental advance
dax: advance the iomap_iter in the read/write path
dax: push advance down into dax_iomap_iter() for read and write
dax: advance the iomap_iter on zero range
dax: advance the iomap_iter on unshare range
dax: advance the iomap_iter on dedupe range
dax: advance the iomap_iter on pte and pmd faults
iomap: remove unnecessary advance from iomap_iter()
iomap: rename iomap_iter processed field to status
iomap: introduce a full map advance helper
fs/dax.c | 111 ++++++++++++++++++++++------------------- fs/iomap/buffered-io.c | 80 ++++++++++++++--------------- fs/iomap/direct-io.c | 24 ++++----- fs/iomap/fiemap.c | 21 ++++---- fs/iomap/iter.c | 43 +++++++--------- fs/iomap/seek.c | 16 +++--- fs/iomap/swapfile.c | 7 +-- fs/iomap/trace.h | 8 +-- include/linux/iomap.h | 17 +++++-- 9 files changed, 164 insertions(+), 163 deletions(-)
Signature · 1 line
2.48.1