iomap: constify iomap_iter_srcmap
authorChristoph Hellwig <hch@lst.de>
Wed, 11 Aug 2021 01:33:16 +0000 (18:33 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 17 Aug 2021 04:26:33 +0000 (21:26 -0700)
commitfad0a1ab34f777bd8a95c6cebd70ee899b6e159e
tree91a0ea2be293287a7c5c521d3cafb504e57b663d
parent65dd814a6187ff46e33718d8eb76244e027837a3
iomap: constify iomap_iter_srcmap

The srcmap returned from iomap_iter_srcmap is never modified, so mark
the iomap returned from it const and constify a lot of code that never
modifies the iomap.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/iomap/buffered-io.c
include/linux/iomap.h