diff options
| author | Joanne Koong <joannelkoong@gmail.com> | 2026-07-29 12:27:29 -0700 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2026-07-31 12:28:50 +0200 |
| commit | d3f0fcc22e93f3e3756f98d07aef37aed64d4940 (patch) | |
| tree | 02ac73b47e1a5a2fc2622250e375a2655e5995e7 | |
| parent | e23b789f9faaf1ff2e988c5c9520b91998f752c7 (diff) | |
| download | linux-stable-d3f0fcc22e93f3e3756f98d07aef37aed64d4940.tar.gz linux-stable-d3f0fcc22e93f3e3756f98d07aef37aed64d4940.zip | |
block: convert iomap ops to ->iomap_next()
Convert block 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.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Link: https://patch.msgid.link/20260729192737.3190206-15-joannelkoong@gmail.com
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
| -rw-r--r-- | block/fops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/block/fops.c b/block/fops.c index 15783a6180de..4cff76e9eb71 100644 --- a/block/fops.c +++ b/block/fops.c @@ -453,8 +453,10 @@ static int blkdev_iomap_begin(struct inode *inode, loff_t offset, loff_t length, return 0; } +static DEFINE_IOMAP_ITER_NEXT(blkdev_iomap_next, blkdev_iomap_begin); + static const struct iomap_ops blkdev_iomap_ops = { - .iomap_begin = blkdev_iomap_begin, + .iomap_next = blkdev_iomap_next, }; #ifdef CONFIG_BUFFER_HEAD |
