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>
This commit is contained in:
committed by
Darrick J. Wong
parent
78c64b00f8
commit
1acd9e9c01
@@ -531,7 +531,7 @@ iomap_write_failed(struct inode *inode, loff_t pos, unsigned len)
|
|||||||
|
|
||||||
static int
|
static int
|
||||||
iomap_read_page_sync(loff_t block_start, struct page *page, unsigned poff,
|
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_vec bvec;
|
||||||
struct bio bio;
|
struct bio bio;
|
||||||
|
|||||||
Reference in New Issue
Block a user