projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d25d0a
)
iomap: mark the iomap argument to iomap_sector const
author
Christoph Hellwig
<hch@lst.de>
Wed, 11 Aug 2021 01:33:04 +0000
(18:33 -0700)
committer
Darrick 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
patch
|
blob
|
history
diff --git
a/include/linux/iomap.h
b/include/linux/iomap.h
index 72696a55c137f10e270418d1124d3a6dc7cb82c7..8030483331d17f9c6faecb7ab73bebaf30d10857 100644
(file)
--- 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;
}