linux-stable/fs/iomap
Christoph Hellwig f4b896c213 iomap: add the new iomap_iter model
The iomap_iter struct provides a convenient way to package up and
maintain all the arguments to the various mapping and operation
functions.  It is operated on using the iomap_iter() function that
is called in loop until the whole range has been processed.  Compared
to the existing iomap_apply() function this avoid an indirect call
for each iteration.

For now iomap_iter() calls back into the existing ->iomap_begin and
->iomap_end methods, but in the future this could be further optimized
to avoid indirect calls entirely.

Based on an earlier patch from Matthew Wilcox <willy@infradead.org>.

Signed-off-by: Christoph Hellwig <hch@lst.de>
[djwong: add to apply.c to preserve git history of iomap loop control]
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
2021-08-16 21:26:33 -07:00
..
apply.c iomap: add the new iomap_iter model 2021-08-16 21:26:33 -07:00
buffered-io.c iomap: fix the iomap_readpage_actor return value for inline data 2021-08-16 21:26:33 -07:00
direct-io.c iomap: support reading inline data from non-zero pos 2021-08-03 09:43:13 -07:00
fiemap.c fs: handle FIEMAP_FLAG_SYNC in fiemap_prep 2020-06-03 23:16:55 -04:00
Makefile iomap: lift common tracing code from xfs to iomap 2019-10-21 08:51:59 -07:00
seek.c iomap: remove the length variable in iomap_seek_hole 2021-07-15 09:58:04 -07:00
swapfile.c iomap: improve the warnings from iomap_swapfile_activate 2021-03-26 10:55:40 -07:00
trace.c iomap: lift common tracing code from xfs to iomap 2019-10-21 08:51:59 -07:00
trace.h iomap: add the new iomap_iter model 2021-08-16 21:26:33 -07:00