iomap: constify struct iomap_ops

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
This commit is contained in:
Christoph Hellwig 2017-01-27 23:20:26 -08:00 • committed by Darrick J. Wong
commit 8ff6daa17b
11 changed files with 33 additions and 33 deletions

View file

@ -3253,7 +3253,7 @@ static inline void ext4_clear_io_unwritten_flag(ext4_io_end_t *io_end)
}
}
extern struct iomap_ops ext4_iomap_ops;
extern const struct iomap_ops ext4_iomap_ops;
#endif /* __KERNEL__ */

View file

@ -3420,7 +3420,7 @@ orphan_del:
return ret;
}
struct iomap_ops ext4_iomap_ops = {
const struct iomap_ops ext4_iomap_ops = {
.iomap_begin = ext4_iomap_begin,
.iomap_end = ext4_iomap_end,
};