From: Christoph Hellwig Date: Wed, 11 Aug 2021 01:33:06 +0000 (-0700) Subject: iomap: mark the iomap argument to iomap_read_page_sync const X-Git-Tag: v5.15~447^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1acd9e9c015b389aa3201a977454efb92e36806c;p=platform%2Fkernel%2Flinux-starfive.git iomap: mark the iomap argument to iomap_read_page_sync const iomap_read_page_sync never modifies the passed in iomap, so mark it const. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong --- diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c index b8a1ba3..0273aed 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;