From: Christoph Hellwig Date: Wed, 11 Aug 2021 01:33:05 +0000 (-0700) Subject: fsdax: mark the iomap argument to dax_iomap_sector as const X-Git-Tag: v5.15~447^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e4f4b2d689d959b03cb07dfbdb97b9696cb1076;p=platform%2Fkernel%2Flinux-starfive.git fsdax: mark the iomap argument to dax_iomap_sector as const Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong --- diff --git a/fs/dax.c b/fs/dax.c index da41f93..4d63040 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -1005,7 +1005,7 @@ int dax_writeback_mapping_range(struct address_space *mapping, } EXPORT_SYMBOL_GPL(dax_writeback_mapping_range); -static sector_t dax_iomap_sector(struct iomap *iomap, loff_t pos) +static sector_t dax_iomap_sector(const struct iomap *iomap, loff_t pos) { return (iomap->addr + (pos & PAGE_MASK) - iomap->offset) >> 9; }