aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2021-08-10 18:33:05 -0700
committerDarrick J. Wong <[email protected]>2021-08-16 21:26:33 -0700
commit7e4f4b2d689d959b03cb07dfbdb97b9696cb1076 (patch)
treee81641c11242dc5219bd19e8a8d36a3d169ba354
parent6d49cc8545e9e9e9e5a14e75fd044f049bd6077e (diff)
fsdax: mark the iomap argument to dax_iomap_sector as const
Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Darrick J. Wong <[email protected]>
-rw-r--r--fs/dax.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/dax.c b/fs/dax.c
index da41f9363568..4d63040fd71f 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;
}