From b350791b3fc298647555579cf385ced267d3dd77 Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Sun, 9 Nov 2025 11:47:03 +0000 Subject: [PATCH] fsdax: mark the iomap argument to dax_iomap_sector as const [ Upstream commit 7e4f4b2d689d959b03cb07dfbdb97b9696cb1076 ] Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong Signed-off-by: Eliav Farber Signed-off-by: Sasha Levin Signed-off-by: Ulrich Hecht --- fs/dax.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/dax.c b/fs/dax.c index 7451efc5020c..361b2f51e4df 100644 --- a/fs/dax.c +++ b/fs/dax.c @@ -1080,7 +1080,7 @@ out: } 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; }