Files
linux-stable-mirror/include/linux
Christoph HellwigandGreg Kroah-Hartman 334d084bb3 iomap: add the new iomap_iter model
[ Upstream commit f4b896c213 ]

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>
Stable-dep-of: 154d1e7ad9 ("dax: skip read lock assertion for read-only filesystems")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-10-29 14:01:18 +01:00
..
2025-06-27 11:04:09 +01:00
2024-07-05 09:12:55 +02:00
2025-09-11 17:16:06 +02:00
2024-10-17 15:07:44 +02:00
2025-10-29 14:01:18 +01:00
2025-07-17 18:27:44 +02:00
2025-03-13 12:47:21 +01:00
2025-06-04 14:37:08 +02:00
2025-08-28 16:22:31 +02:00
2025-04-10 14:30:53 +02:00
2025-02-01 18:22:32 +01:00
2025-06-27 11:04:09 +01:00
2024-07-05 09:12:55 +02:00
2025-06-04 14:37:09 +02:00
2024-10-17 15:07:57 +02:00
2025-08-28 16:22:37 +02:00