diff options
author | David Sterba <dsterba@suse.com> | 2015-11-19 05:42:28 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-01-07 09:01:14 -0500 |
commit | 20e5506baf3fd651e245bc970d8c11a734ee1b8a (patch) | |
tree | 429cae426bb8b1cb38b261d485e0ebecc093e439 /fs/btrfs/inode.c | |
parent | 28f0779a3fd6ef015303780f0b9a92b24728bc4b (diff) |
btrfs: constify remaining structs with function pointers
* struct extent_io_ops
* struct btrfs_free_space_op
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 0214a812fc0e..c4cfba79ab47 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
@@ -74,7 +74,7 @@ static const struct inode_operations btrfs_file_inode_operations; | |||
74 | static const struct address_space_operations btrfs_aops; | 74 | static const struct address_space_operations btrfs_aops; |
75 | static const struct address_space_operations btrfs_symlink_aops; | 75 | static const struct address_space_operations btrfs_symlink_aops; |
76 | static const struct file_operations btrfs_dir_file_operations; | 76 | static const struct file_operations btrfs_dir_file_operations; |
77 | static struct extent_io_ops btrfs_extent_io_ops; | 77 | static const struct extent_io_ops btrfs_extent_io_ops; |
78 | 78 | ||
79 | static struct kmem_cache *btrfs_inode_cachep; | 79 | static struct kmem_cache *btrfs_inode_cachep; |
80 | struct kmem_cache *btrfs_trans_handle_cachep; | 80 | struct kmem_cache *btrfs_trans_handle_cachep; |
@@ -10020,7 +10020,7 @@ static const struct file_operations btrfs_dir_file_operations = { | |||
10020 | .fsync = btrfs_sync_file, | 10020 | .fsync = btrfs_sync_file, |
10021 | }; | 10021 | }; |
10022 | 10022 | ||
10023 | static struct extent_io_ops btrfs_extent_io_ops = { | 10023 | static const struct extent_io_ops btrfs_extent_io_ops = { |
10024 | .fill_delalloc = run_delalloc_range, | 10024 | .fill_delalloc = run_delalloc_range, |
10025 | .submit_bio_hook = btrfs_submit_bio_hook, | 10025 | .submit_bio_hook = btrfs_submit_bio_hook, |
10026 | .merge_bio_hook = btrfs_merge_bio_hook, | 10026 | .merge_bio_hook = btrfs_merge_bio_hook, |