Skip to content

RFC Begin switching iomap from apply to iter

Matthew Wilcox linux-xfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iomap: Add iomap_iter APIfs/iomap/Makefile fs/iomap/iter.c include/linux/iomap.h+106 -15 replies
2/2iomap: Convert page_mkwrite to iter APIfs/iomap/buffered-io.c+19 -320 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/2] Begin switching iomap from apply to iter

From: "Matthew Wilcox (Oracle)" <[email protected]>

I don't like the 'apply' design pattern. It splits the logic between two functions, and from a performance point of view, it introduces an indirect function call which is more expensive due to Spectre. This rfc only converts one function over to use the new API as a demonstration. I don't want to waste time on it if people aren't interested in this approach.

I haven't tested this at all; it's probably buggy.

Matthew Wilcox (Oracle) (2):
iomap: Add iomap_iter API
iomap: Convert page_mkwrite to iter API

 fs/iomap/Makefile      |  2 +-
 fs/iomap/buffered-io.c | 51 ++++++++++----------------
 fs/iomap/iter.c        | 81 ++++++++++++++++++++++++++++++++++++++++++
 include/linux/iomap.h  | 24 +++++++++++++
 4 files changed, 125 insertions(+), 33 deletions(-)
 create mode 100644 fs/iomap/iter.c
Signature · 1 line
2.25.1