[PATCH v2 15/18] exfat: convert iomap ops to ->iomap_next()

From: Joanne Koong

Date: Tue Jun 30 2026 - 20:13:43 EST


Convert fuse 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/exfat/iomap.c | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/fs/exfat/iomap.c b/fs/exfat/iomap.c
index 1aac38e63fe6..8d33690a562d 100644
--- a/fs/exfat/iomap.c
+++ b/fs/exfat/iomap.c
@@ -151,8 +151,14 @@ static int exfat_write_iomap_begin(struct inode *inode, loff_t offset, loff_t le
return __exfat_iomap_begin(inode, offset, length, flags, iomap, true);
}

+static int exfat_iomap_next(const struct iomap_iter *iter, struct iomap *iomap,
+ struct iomap *srcmap)
+{
+ return iomap_process(iter, iomap, srcmap, exfat_iomap_begin, NULL);
+}
+
const struct iomap_ops exfat_iomap_ops = {
- .iomap_begin = exfat_iomap_begin,
+ .iomap_next = exfat_iomap_next,
};

/*
@@ -186,9 +192,15 @@ static int exfat_write_iomap_end(struct inode *inode, loff_t pos, loff_t length,
return written;
}

+static int exfat_write_iomap_next(const struct iomap_iter *iter,
+ struct iomap *iomap, struct iomap *srcmap)
+{
+ return iomap_process(iter, iomap, srcmap,
+ exfat_write_iomap_begin, exfat_write_iomap_end);
+}
+
const struct iomap_ops exfat_write_iomap_ops = {
- .iomap_begin = exfat_write_iomap_begin,
- .iomap_end = exfat_write_iomap_end,
+ .iomap_next = exfat_write_iomap_next,
};

/*
--
2.52.0