Christoph Hellwig and Greg 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
..
2024-10-22 15:39:23 +02:00
2024-12-14 19:48:21 +01:00
2025-10-29 14:01:08 +01:00
2024-10-22 15:39:29 +02:00
2025-06-04 14:37:05 +02:00
2025-06-27 11:04:03 +01:00
2025-04-10 14:30:48 +02:00
2025-08-28 16:22:56 +02:00
2024-08-19 05:40:47 +02:00
2025-10-29 14:01:15 +01:00
2025-05-02 07:41:12 +02:00
2024-11-17 14:59:37 +01:00
2024-12-14 19:48:16 +01:00
2025-08-28 16:22:53 +02:00
2025-06-27 11:04:02 +01:00
2025-09-04 14:41:42 +02:00
2025-05-02 07:41:01 +02:00
2025-06-04 14:37:09 +02:00
2024-09-04 13:17:30 +02:00
2025-08-28 16:22:54 +02:00
2025-05-02 07:41:07 +02:00
2024-12-14 19:48:14 +01:00
2025-06-27 11:04:09 +01:00
2025-06-27 11:04:09 +01:00
2024-10-17 15:07:38 +02:00
2024-09-12 11:06:42 +02:00
2025-10-29 14:01:15 +01:00
2024-07-05 09:12:55 +02:00
2025-10-29 14:01:15 +01:00
2025-10-29 14:01:15 +01:00
2025-10-02 13:35:36 +02:00
2025-10-29 14:01:16 +01:00
2025-09-11 17:16:06 +02:00
2024-09-04 13:17:30 +02:00
2025-08-28 16:22:58 +02:00
2025-10-29 14:01:15 +01:00
2025-06-04 14:36:58 +02:00
2024-12-14 19:48:32 +01:00
2025-03-13 12:47:19 +01:00
2025-10-29 14:01:15 +01:00
2025-05-02 07:41:21 +02:00
2025-08-28 16:22:31 +02:00
2025-08-28 16:22:54 +02:00
2024-09-12 11:06:41 +02:00
2024-07-18 13:05:43 +02:00
2025-02-01 18:22:24 +01:00
2025-06-27 11:04:20 +01:00
2025-02-01 18:22:29 +01:00
2025-06-27 11:04:21 +01:00
2024-09-12 11:06:41 +02:00
2025-07-17 18:27:40 +02:00
2024-10-17 15:07:44 +02:00
2025-04-10 14:30:48 +02:00
2025-08-28 16:22:43 +02:00
2025-10-02 13:35:39 +02:00
2025-10-29 14:01:18 +01:00
2025-07-17 18:27:44 +02:00
2024-08-19 05:41:10 +02:00
2024-08-19 05:41:07 +02:00
2025-10-29 14:01:15 +01:00
2024-08-19 05:40:58 +02:00
2024-12-14 19:47:45 +01:00
2025-03-13 12:46:56 +01:00
2025-03-13 12:47:06 +01:00
2024-12-14 19:48:30 +01:00
2024-12-14 19:48:09 +01:00
2024-07-18 13:05:44 +02:00
2025-08-28 16:22:55 +02:00
2025-10-29 14:01:17 +01:00
2025-06-27 11:04:21 +01:00
2025-08-28 16:22:55 +02:00
2024-12-14 19:47:40 +01:00
2025-08-28 16:22:58 +02:00
2025-07-17 18:27:56 +02:00
2025-08-28 16:22:35 +02:00
2025-10-29 14:01:15 +01:00
2024-12-14 19:48:05 +01:00
2025-03-13 12:47:21 +01:00
2024-12-14 19:47:56 +01:00
2024-10-17 15:08:33 +02:00
2025-09-04 14:41:42 +02:00
2025-05-02 07:41:01 +02:00
2024-07-05 09:12:50 +02:00
2024-08-19 05:40:45 +02:00
2025-10-29 14:01:15 +01:00
2025-03-13 12:47:23 +01:00
2025-08-28 16:22:54 +02:00
2025-10-29 14:01:15 +01:00
2024-11-17 14:59:35 +01:00
2025-06-04 14:37:08 +02:00
2025-04-10 14:30:55 +02:00
2025-02-01 18:22:28 +01:00
2025-08-28 16:22:31 +02:00
2025-10-29 14:01:15 +01:00
2025-04-10 14:30:53 +02:00
2024-10-17 15:07:44 +02:00
2025-10-29 14:01:15 +01:00
2025-06-04 14:37:05 +02:00
2025-10-29 14:01:15 +01:00
2025-02-01 18:22:32 +01:00
2024-07-18 13:05:44 +02:00
2024-12-14 19:47:45 +01:00
2025-08-28 16:22:43 +02:00
2025-06-27 11:04:09 +01:00
2025-10-29 14:01:17 +01:00
2025-10-29 14:01:15 +01:00
2025-10-29 14:01:15 +01:00
2024-12-19 18:06:14 +01:00
2024-07-05 09:12:55 +02:00
2024-08-19 05:40:57 +02:00
2025-06-04 14:37:09 +02:00
2025-10-29 14:01:15 +01:00
2025-06-04 14:36:55 +02:00
2025-02-01 18:22:34 +01:00
2024-12-14 19:48:17 +01:00
2024-10-17 15:07:57 +02:00
2025-01-09 13:24:56 +01:00
2025-01-09 13:24:55 +01:00
2025-08-28 16:22:37 +02:00