Commit 4495c33e authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Darrick J. Wong
Browse files

iomap: mark the iomap argument to iomap_inline_data const

parent 66b8165e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ static inline sector_t iomap_sector(const struct iomap *iomap, loff_t pos)
/*
 * Returns the inline data pointer for logical offset @pos.
 */
static inline void *iomap_inline_data(struct iomap *iomap, loff_t pos)
static inline void *iomap_inline_data(const struct iomap *iomap, loff_t pos)
{
	return iomap->inline_data + pos - iomap->offset;
}