Commit 6d49cc85 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Darrick J. Wong

fs: mark the iomap argument to __block_write_begin_int const

__block_write_begin_int never modifies the passed in iomap, so mark it
const.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
parent e3c4ffb0
...@@ -1912,7 +1912,7 @@ EXPORT_SYMBOL(page_zero_new_buffers); ...@@ -1912,7 +1912,7 @@ EXPORT_SYMBOL(page_zero_new_buffers);
static void static void
iomap_to_bh(struct inode *inode, sector_t block, struct buffer_head *bh, iomap_to_bh(struct inode *inode, sector_t block, struct buffer_head *bh,
struct iomap *iomap) const struct iomap *iomap)
{ {
loff_t offset = block << inode->i_blkbits; loff_t offset = block << inode->i_blkbits;
...@@ -1966,7 +1966,7 @@ iomap_to_bh(struct inode *inode, sector_t block, struct buffer_head *bh, ...@@ -1966,7 +1966,7 @@ iomap_to_bh(struct inode *inode, sector_t block, struct buffer_head *bh,
} }
int __block_write_begin_int(struct page *page, loff_t pos, unsigned len, int __block_write_begin_int(struct page *page, loff_t pos, unsigned len,
get_block_t *get_block, struct iomap *iomap) get_block_t *get_block, const struct iomap *iomap)
{ {
unsigned from = pos & (PAGE_SIZE - 1); unsigned from = pos & (PAGE_SIZE - 1);
unsigned to = from + len; unsigned to = from + len;
......
...@@ -48,8 +48,8 @@ static inline int emergency_thaw_bdev(struct super_block *sb) ...@@ -48,8 +48,8 @@ static inline int emergency_thaw_bdev(struct super_block *sb)
/* /*
* buffer.c * buffer.c
*/ */
extern int __block_write_begin_int(struct page *page, loff_t pos, unsigned len, int __block_write_begin_int(struct page *page, loff_t pos, unsigned len,
get_block_t *get_block, struct iomap *iomap); get_block_t *get_block, const struct iomap *iomap);
/* /*
* char_dev.c * char_dev.c
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment