diff options
author | Christoph Hellwig <hch@lst.de> | 2021-08-10 18:33:06 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-08-16 21:26:33 -0700 |
commit | 78c64b00f842ac704d0612553dd124c31b4afceb (patch) | |
tree | 73b9cf27f6d5c5a0cfac771a93ecb2d63a7c867c /fs/iomap | |
parent | 7e4f4b2d689d959b03cb07dfbdb97b9696cb1076 (diff) | |
download | lwn-78c64b00f842ac704d0612553dd124c31b4afceb.tar.gz lwn-78c64b00f842ac704d0612553dd124c31b4afceb.zip |
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: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/iomap')
-rw-r--r-- | fs/iomap/buffered-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c index 7e794a30806b..b8a1ba3fb957 100644 --- a/fs/iomap/buffered-io.c +++ b/fs/iomap/buffered-io.c @@ -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); |