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

Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Link: https://patch.msgid.link/20260729192737.3190206-16-joannelkoong@gmail.com
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
fs/f2fs/data.c

index a765fda715363914f0ed67449444df9c54009c5e..8977ad379f50dce3a9422474dc381bca120af882 100644 (file)
@@ -4653,6 +4653,8 @@ static int f2fs_iomap_begin(struct inode *inode, loff_t offset, loff_t length,
        return 0;
 }
 
+static DEFINE_IOMAP_ITER_NEXT(f2fs_iomap_next, f2fs_iomap_begin);
+
 const struct iomap_ops f2fs_iomap_ops = {
-       .iomap_begin    = f2fs_iomap_begin,
+       .iomap_next     = f2fs_iomap_next,
 };