Thread (58 messages) 58 messages, 4 authors, 2021-07-29

[PATCH 03/27] iomap: mark the iomap argument to iomap_sector const

STALE1892d

From: Christoph Hellwig <hch@lst.de>
Date: 2021-07-19 10:39:53
Also in: linux-fsdevel, linux-xfs, nvdimm
Subsystem: filesystems [iomap], the rest · Maintainers: Christian Brauner, Linus Torvalds

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 include/linux/iomap.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/linux/iomap.h b/include/linux/iomap.h
index 093519d91cc9cc..f9c36df6a3061b 100644
--- 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;
 }
-- 
2.30.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help