iomap: mark the iomap argument to iomap_sector const
authorChristoph Hellwig <hch@lst.de>
Wed, 11 Aug 2021 01:33:04 +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 72696a5..8030483 100644 (file)
@@ -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;
 }