aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/iomap.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-08-10 18:33:04 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-08-16 21:26:33 -0700
commit66b8165ed4b5a2e7ddb7b9bbf3586b7ccdd86a1c (patch)
treed2df857c5d012eefd4b1836d5102df5e9768574c /include/linux/iomap.h
parentiomap: remove the iomap arguments to ->page_{prepare,done} (diff)
downloadlinux-dev-66b8165ed4b5a2e7ddb7b9bbf3586b7ccdd86a1c.tar.xz
linux-dev-66b8165ed4b5a2e7ddb7b9bbf3586b7ccdd86a1c.zip
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>
Diffstat (limited to 'include/linux/iomap.h')
-rw-r--r--include/linux/iomap.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/iomap.h b/include/linux/iomap.h
index 72696a55c137..8030483331d1 100644
--- a/include/linux/iomap.h
+++ b/include/linux/iomap.h
@@ -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;
}