Commit 1acd9e9c authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Darrick J. Wong

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: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
parent 78c64b00
...@@ -531,7 +531,7 @@ iomap_write_failed(struct inode *inode, loff_t pos, unsigned len) ...@@ -531,7 +531,7 @@ iomap_write_failed(struct inode *inode, loff_t pos, unsigned len)
static int static int
iomap_read_page_sync(loff_t block_start, struct page *page, unsigned poff, 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_vec bvec;
struct bio bio; struct bio bio;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment