mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
iomap: mark the iomap argument to iomap_sector 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
1d25d0aecf
commit
66b8165ed4
|
|
@ -91,8 +91,7 @@ struct iomap {
|
|||
const struct iomap_page_ops *page_ops;
|
||||
};
|
||||
|
||||
static inline sector_t
|
||||
iomap_sector(struct iomap *iomap, loff_t pos)
|
||||
static inline sector_t iomap_sector(const struct iomap *iomap, loff_t pos)
|
||||
{
|
||||
return (iomap->addr + pos - iomap->offset) >> SECTOR_SHIFT;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user