]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
exfat: convert iomap ops to ->iomap_next()
authorJoanne Koong <joannelkoong@gmail.com>
Wed, 29 Jul 2026 19:27:34 +0000 (12:27 -0700)
committerChristian Brauner <brauner@kernel.org>
Fri, 31 Jul 2026 10:28:51 +0000 (12:28 +0200)
Convert exfat iomap_ops to the new ->iomap_next() callback. Each
callback is generated with the DEFINE_IOMAP_ITER_NEXT() and
DEFINE_IOMAP_ITER_NEXT_END() macros, which wrap the iomap_iter_next()
helper to finish the previous mapping if needed and produce the next
one. No functional changes are intended.

Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Link: https://patch.msgid.link/20260729192737.3190206-20-joannelkoong@gmail.com
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
fs/exfat/iomap.c

index 1aac38e63fe6f0b4b45e9f681eba5a16d6ee1365..b6dd396aa60a20fd1ca65fe2d485302b7e63ab36 100644 (file)
@@ -151,8 +151,10 @@ 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 DEFINE_IOMAP_ITER_NEXT(exfat_iomap_next, exfat_iomap_begin);
+
 const struct iomap_ops exfat_iomap_ops = {
-       .iomap_begin = exfat_iomap_begin,
+       .iomap_next = exfat_iomap_next,
 };
 
 /*
@@ -186,9 +188,11 @@ static int exfat_write_iomap_end(struct inode *inode, loff_t pos, loff_t length,
        return written;
 }
 
+static DEFINE_IOMAP_ITER_NEXT_END(exfat_write_iomap_next,
+               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,
 };
 
 /*