diff options
author | Christoph Hellwig <hch@lst.de> | 2017-01-28 08:20:26 +0100 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2017-01-31 01:32:25 +0100 |
commit | 8ff6daa17b6a64e59bbabaa116b9bd854fa4da1f (patch) | |
tree | 2e3aff37a0a2d813849a5cd73641d3df29955fdc /fs/xfs/xfs_iomap.c | |
parent | xfs: remove boilerplate around xfs_btree_init_block (diff) | |
download | linux-8ff6daa17b6a64e59bbabaa116b9bd854fa4da1f.tar.xz linux-8ff6daa17b6a64e59bbabaa116b9bd854fa4da1f.zip |
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/xfs/xfs_iomap.c')
-rw-r--r-- | fs/xfs/xfs_iomap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_iomap.c b/fs/xfs/xfs_iomap.c index 1aa3abd67b36..25ed98324b27 100644 --- a/fs/xfs/xfs_iomap.c +++ b/fs/xfs/xfs_iomap.c @@ -1144,7 +1144,7 @@ xfs_file_iomap_end( return 0; } -struct iomap_ops xfs_iomap_ops = { +const struct iomap_ops xfs_iomap_ops = { .iomap_begin = xfs_file_iomap_begin, .iomap_end = xfs_file_iomap_end, }; @@ -1190,6 +1190,6 @@ out_unlock: return error; } -struct iomap_ops xfs_xattr_iomap_ops = { +const struct iomap_ops xfs_xattr_iomap_ops = { .iomap_begin = xfs_xattr_iomap_begin, }; |