diff options
author | Christoph Hellwig <hch@lst.de> | 2017-01-28 02:20:26 -0500 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-01-30 19:32:25 -0500 |
commit | 8ff6daa17b6a64e59bbabaa116b9bd854fa4da1f (patch) | |
tree | 2e3aff37a0a2d813849a5cd73641d3df29955fdc /fs/ext2/inode.c | |
parent | b6f41e448277ff080fea734b93121e6cd7513f0c (diff) |
iomap: constify struct iomap_ops
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/ext2/inode.c')
-rw-r--r-- | fs/ext2/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index f073bfca694b..128cce540645 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c | |||
@@ -842,13 +842,13 @@ ext2_iomap_end(struct inode *inode, loff_t offset, loff_t length, | |||
842 | return 0; | 842 | return 0; |
843 | } | 843 | } |
844 | 844 | ||
845 | struct iomap_ops ext2_iomap_ops = { | 845 | const struct iomap_ops ext2_iomap_ops = { |
846 | .iomap_begin = ext2_iomap_begin, | 846 | .iomap_begin = ext2_iomap_begin, |
847 | .iomap_end = ext2_iomap_end, | 847 | .iomap_end = ext2_iomap_end, |
848 | }; | 848 | }; |
849 | #else | 849 | #else |
850 | /* Define empty ops for !CONFIG_FS_DAX case to avoid ugly ifdefs */ | 850 | /* Define empty ops for !CONFIG_FS_DAX case to avoid ugly ifdefs */ |
851 | struct iomap_ops ext2_iomap_ops; | 851 | const struct iomap_ops ext2_iomap_ops; |
852 | #endif /* CONFIG_FS_DAX */ | 852 | #endif /* CONFIG_FS_DAX */ |
853 | 853 | ||
854 | int ext2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, | 854 | int ext2_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, |