projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78c64b0
)
iomap: mark the iomap argument to iomap_read_page_sync const
author
Christoph Hellwig
<hch@lst.de>
Wed, 11 Aug 2021 01:33:06 +0000
(18:33 -0700)
committer
Darrick J. Wong
<djwong@kernel.org>
Tue, 17 Aug 2021 04:26:33 +0000
(21:26 -0700)
iomap_read_page_sync never modifies the passed in iomap, so mark
it const.
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>
fs/iomap/buffered-io.c
patch
|
blob
|
history
diff --git
a/fs/iomap/buffered-io.c
b/fs/iomap/buffered-io.c
index b8a1ba3fb957fe28a2463b4b50f7fdfe5284f7ea..0273aede8b1dd80bd7b201bbe2d4794668805c37 100644
(file)
--- a/
fs/iomap/buffered-io.c
+++ b/
fs/iomap/buffered-io.c
@@
-531,7
+531,7
@@
iomap_write_failed(struct inode *inode, loff_t pos, unsigned len)
static int
iomap_read_page_sync(loff_t block_start, struct page *page, unsigned poff,
- unsigned plen, struct iomap *iomap)
+ unsigned plen,
const
struct iomap *iomap)
{
struct bio_vec bvec;
struct bio bio;