diff options
author | Christoph Hellwig <hch@lst.de> | 2021-08-11 03:33:06 +0200 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-08-17 06:26:33 +0200 |
commit | 1acd9e9c015b389aa3201a977454efb92e36806c (patch) | |
tree | ff417a617bf733450faf2a3c0bcffa17dbb6c698 /fs/iomap | |
parent | iomap: mark the iomap argument to iomap_read_inline_data const (diff) | |
download | linux-1acd9e9c015b389aa3201a977454efb92e36806c.tar.xz linux-1acd9e9c015b389aa3201a977454efb92e36806c.zip |
iomap: mark the iomap argument to iomap_read_page_sync const
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>
Diffstat (limited to 'fs/iomap')
-rw-r--r-- | fs/iomap/buffered-io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c index b8a1ba3fb957..0273aede8b1d 100644 --- 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; |