diff options
author | Christoph Hellwig <hch@lst.de> | 2021-08-11 04:33:05 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-08-17 07:26:33 +0300 |
commit | 6d49cc8545e9e9e9e5a14e75fd044f049bd6077e (patch) | |
tree | 70e6df61aef50978c342d5c4d2d7e511e88ab417 /fs/internal.h | |
parent | e3c4ffb0c2219e720acdc6072c6ddaccac5cab79 (diff) | |
download | linux-6d49cc8545e9e9e9e5a14e75fd044f049bd6077e.tar.xz |
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/internal.h')
-rw-r--r-- | fs/internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/internal.h b/fs/internal.h index 82e8eb32ff3d..54c2928d39ec 100644 --- a/fs/internal.h +++ b/fs/internal.h @@ -48,8 +48,8 @@ static inline int emergency_thaw_bdev(struct super_block *sb) /* * buffer.c */ -extern int __block_write_begin_int(struct page *page, loff_t pos, unsigned len, - get_block_t *get_block, struct iomap *iomap); +int __block_write_begin_int(struct page *page, loff_t pos, unsigned len, + get_block_t *get_block, const struct iomap *iomap); /* * char_dev.c |