iomap: mark the iomap argument to iomap_inline_data_valid const
authorChristoph Hellwig <hch@lst.de>
Wed, 11 Aug 2021 01:33:05 +0000 (18:33 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 17 Aug 2021 04:26:33 +0000 (21:26 -0700)
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>
include/linux/iomap.h

index 5602471..76bfc5d 100644 (file)
@@ -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);
 }