mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 23:51:37 +00:00
iomap: mark the iomap argument to iomap_inline_data 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>
This commit is contained in:
parent
66b8165ed4
commit
4495c33e4d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user