[Cluster-devel] [PATCH 09/30] iomap: mark the iomap argument to iomap_read_page_sync const

Christoph Hellwig hch at lst.de
Mon Aug 9 06:12:23 UTC 2021

iomap_read_page_sync never modifies the passed in iomap, so mark
it const.

Signed-off-by: Christoph Hellwig <hch at lst.de>
Reviewed-by: Darrick J. Wong <djwong at kernel.org>
 fs/iomap/buffered-io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c
index eda8892b8c5741..44587209e6d7c7 100644
--- a/fs/iomap/buffered-io.c
+++ b/fs/iomap/buffered-io.c
@@ -531,7 +531,7 @@ iomap_write_failed(struct inode *inode, loff_t pos, unsigned len)
 static int
 iomap_read_page_sync(loff_t block_start, struct page *page, unsigned poff,
-		unsigned plen, struct iomap *iomap)
+		unsigned plen, const struct iomap *iomap)
 	struct bio_vec bvec;
 	struct bio bio;

More information about the Cluster-devel mailing list