summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-08-11 04:33:05 +0300
committerDarrick J. Wong <djwong@kernel.org>2021-08-17 07:26:33 +0300
commite3c4ffb0c2219e720acdc6072c6ddaccac5cab79 (patch)
tree66004c32fd1cefb27b9bc7614ee257df3343b4ea /include/linux
parent4495c33e4d302b8d3a9eb483c06b2687d27dab9d (diff)
downloadlinux-e3c4ffb0c2219e720acdc6072c6ddaccac5cab79.tar.xz
iomap: mark the iomap argument to iomap_inline_data_valid 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 'include/linux')
-rw-r--r--include/linux/iomap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/iomap.h b/include/linux/iomap.h
index 560247130357..76bfc5d16ef4 100644
--- a/include/linux/iomap.h
+++ b/include/linux/iomap.h
@@ -109,7 +109,7 @@ static inline void *iomap_inline_data(const struct iomap *iomap, loff_t pos)
* This is used to guard against accessing data beyond the page inline_data
* points at.
*/
-static inline bool iomap_inline_data_valid(struct iomap *iomap)
+static inline bool iomap_inline_data_valid(const struct iomap *iomap)
{
return iomap->length <= PAGE_SIZE - offset_in_page(iomap->inline_data);
}