Commit 78c64b00 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Darrick J. Wong

iomap: mark the iomap argument to iomap_read_inline_data const

iomap_read_inline_data 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 7e4f4b2d
......@@ -206,7 +206,7 @@ struct iomap_readpage_ctx {
};
static int iomap_read_inline_data(struct inode *inode, struct page *page,
struct iomap *iomap)
const struct iomap *iomap)
{
size_t size = i_size_read(inode) - iomap->offset;
size_t poff = offset_in_page(iomap->offset);
......
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