Convert block 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 --- block/fops.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/block/fops.c b/block/fops.c index 15783a6180de..c2721e2c659b 100644 --- a/block/fops.c +++ b/block/fops.c @@ -453,8 +453,14 @@ static int blkdev_iomap_begin(struct inode *inode, loff_t offset, loff_t length, return 0; } +static int blkdev_iomap_next(const struct iomap_iter *iter, struct iomap *iomap, + struct iomap *srcmap) +{ + return iomap_process(iter, iomap, srcmap, blkdev_iomap_begin, NULL); +} + static const struct iomap_ops blkdev_iomap_ops = { - .iomap_begin = blkdev_iomap_begin, + .iomap_next = blkdev_iomap_next, }; #ifdef CONFIG_BUFFER_HEAD -- 2.52.0