[PATCH v2 13/18] hpfs: convert iomap ops to ->iomap_next()
From: Joanne Koong
Date: Tue Jun 30 2026 - 20:15:41 EST
Convert hpfs 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/hpfs/file.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/fs/hpfs/file.c b/fs/hpfs/file.c
index 29e876705369..1df9f28fb40b 100644
--- a/fs/hpfs/file.c
+++ b/fs/hpfs/file.c
@@ -156,8 +156,14 @@ static int hpfs_iomap_begin(struct inode *inode, loff_t offset, loff_t length,
return 0;
}
+static int hpfs_iomap_next(const struct iomap_iter *iter, struct iomap *iomap,
+ struct iomap *srcmap)
+{
+ return iomap_process(iter, iomap, srcmap, hpfs_iomap_begin, NULL);
+}
+
static const struct iomap_ops hpfs_iomap_ops = {
- .iomap_begin = hpfs_iomap_begin,
+ .iomap_next = hpfs_iomap_next,
};
static int hpfs_read_folio(struct file *file, struct folio *folio)
--
2.52.0