diff options
author | Christoph Hellwig <hch@lst.de> | 2021-08-10 18:33:05 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-08-16 21:26:33 -0700 |
commit | 6d49cc8545e9e9e9e5a14e75fd044f049bd6077e (patch) | |
tree | 70e6df61aef50978c342d5c4d2d7e511e88ab417 /fs/buffer.c | |
parent | e3c4ffb0c2219e720acdc6072c6ddaccac5cab79 (diff) | |
download | linux-stable-6d49cc8545e9e9e9e5a14e75fd044f049bd6077e.tar.gz linux-stable-6d49cc8545e9e9e9e5a14e75fd044f049bd6077e.tar.bz2 linux-stable-6d49cc8545e9e9e9e5a14e75fd044f049bd6077e.zip |
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: 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/buffer.c')
-rw-r--r-- | fs/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/buffer.c b/fs/buffer.c index 6290c3afdba4..bd6a9e9fbd64 100644 --- a/fs/buffer.c +++ b/fs/buffer.c @@ -1912,7 +1912,7 @@ EXPORT_SYMBOL(page_zero_new_buffers); static void 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; @@ -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, - get_block_t *get_block, struct iomap *iomap) + get_block_t *get_block, const struct iomap *iomap) { unsigned from = pos & (PAGE_SIZE - 1); unsigned to = from + len; |