linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/2] Begin switching iomap from apply to iter
@ 2020-04-01 15:25 Matthew Wilcox
  2020-04-01 15:25 ` [PATCH 1/2] iomap: Add iomap_iter API Matthew Wilcox
  2020-04-01 15:25 ` [PATCH 2/2] iomap: Convert page_mkwrite to iter API Matthew Wilcox
  0 siblings, 2 replies; 8+ messages in thread
From: Matthew Wilcox @ 2020-04-01 15:25 UTC (permalink / raw)
  To: hch; +Cc: Matthew Wilcox (Oracle), linux-xfs

From: "Matthew Wilcox (Oracle)" <willy@infradead.org>

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

-- 
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-04-22 15:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-01 15:25 [RFC 0/2] Begin switching iomap from apply to iter Matthew Wilcox
2020-04-01 15:25 ` [PATCH 1/2] iomap: Add iomap_iter API Matthew Wilcox
2020-04-01 15:42   ` Christoph Hellwig
2020-04-01 18:42     ` Matthew Wilcox
2020-04-22 15:19       ` Jan Kara
2020-04-01 19:20     ` Matthew Wilcox
2020-04-02  7:48       ` Christoph Hellwig
2020-04-01 15:25 ` [PATCH 2/2] iomap: Convert page_mkwrite to iter API Matthew Wilcox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).