[PATCH v2 11/18] f2fs: convert iomap ops to ->iomap_next()
From: Joanne Koong
Date: Tue Jun 30 2026 - 20:15:35 EST
Convert f2fs iomap_ops to the new ->iomap_next() callback. This uses the
iomap_process() helper, which finishes the previous mapping if needed
and produces the next one. No functional changes are intended.
Signed-off-by: Joanne Koong <joannelkoong@xxxxxxxxx>
---
fs/f2fs/data.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c
index a765fda71536..afc9b2adaa98 100644
--- a/fs/f2fs/data.c
+++ b/fs/f2fs/data.c
@@ -4653,6 +4653,12 @@ static int f2fs_iomap_begin(struct inode *inode, loff_t offset, loff_t length,
return 0;
}
+static int f2fs_iomap_next(const struct iomap_iter *iter, struct iomap *iomap,
+ struct iomap *srcmap)
+{
+ return iomap_process(iter, iomap, srcmap, f2fs_iomap_begin, NULL);
+}
+
const struct iomap_ops f2fs_iomap_ops = {
- .iomap_begin = f2fs_iomap_begin,
+ .iomap_next = f2fs_iomap_next,
};
--
2.52.0