diff options
| author | Alexey Dobriyan <adobriyan@gmail.com> | 2009-09-21 20:01:11 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-22 10:17:24 -0400 |
| commit | 6e1d5dcc2bbbe71dbf010c747e15739bef6b7218 (patch) | |
| tree | 2edb0f6cc65acbae95e42df1bc763ec048e6c2e0 | |
| parent | 7f09410bbc4306f592cfb43812389ea1c7905a20 (diff) | |
const: mark remaining inode_operations as const
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
| -rw-r--r-- | arch/powerpc/platforms/cell/spufs/inode.c | 2 | ||||
| -rw-r--r-- | fs/btrfs/inode.c | 20 | ||||
| -rw-r--r-- | fs/cifs/cifs_dfs_ref.c | 2 | ||||
| -rw-r--r-- | fs/cifs/cifsfs.h | 2 | ||||
| -rw-r--r-- | fs/inode.c | 2 | ||||
| -rw-r--r-- | fs/nilfs2/file.c | 2 | ||||
| -rw-r--r-- | fs/nilfs2/mdt.c | 2 | ||||
| -rw-r--r-- | fs/nilfs2/namei.c | 6 | ||||
| -rw-r--r-- | fs/nilfs2/nilfs.h | 8 | ||||
| -rw-r--r-- | fs/omfs/dir.c | 2 | ||||
| -rw-r--r-- | fs/omfs/file.c | 2 | ||||
| -rw-r--r-- | fs/omfs/omfs.h | 4 | ||||
| -rw-r--r-- | fs/romfs/super.c | 2 | ||||
| -rw-r--r-- | kernel/cgroup.c | 4 |
14 files changed, 30 insertions, 30 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index 78f2a52f7288..fc1b1c42b1dc 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c | |||
| @@ -119,7 +119,7 @@ spufs_new_file(struct super_block *sb, struct dentry *dentry, | |||
| 119 | const struct file_operations *fops, int mode, | 119 | const struct file_operations *fops, int mode, |
| 120 | size_t size, struct spu_context *ctx) | 120 | size_t size, struct spu_context *ctx) |
| 121 | { | 121 | { |
| 122 | static struct inode_operations spufs_file_iops = { | 122 | static const struct inode_operations spufs_file_iops = { |
| 123 | .setattr = spufs_setattr, | 123 | .setattr = spufs_setattr, |
| 124 | }; | 124 | }; |
| 125 | struct inode *inode; | 125 | struct inode *inode; |
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 3e4d67957886..9096fd0ca3ca 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c | |||
| @@ -55,11 +55,11 @@ struct btrfs_iget_args { | |||
| 55 | struct btrfs_root *root; | 55 | struct btrfs_root *root; |
| 56 | }; | 56 | }; |
| 57 | 57 | ||
| 58 | static struct inode_operations btrfs_dir_inode_operations; | 58 | static const struct inode_operations btrfs_dir_inode_operations; |
| 59 | static struct inode_operations btrfs_symlink_inode_operations; | 59 | static const struct inode_operations btrfs_symlink_inode_operations; |
| 60 | static struct inode_operations btrfs_dir_ro_inode_operations; | 60 | static const struct inode_operations btrfs_dir_ro_inode_operations; |
| 61 | static struct inode_operations btrfs_special_inode_operations; | 61 | static const struct inode_operations btrfs_special_inode_operations; |
| 62 | static struct inode_operations btrfs_file_inode_operations; | 62 | static const struct inode_operations btrfs_file_inode_operations; |
| 63 | static const struct address_space_operations btrfs_aops; | 63 | static const struct address_space_operations btrfs_aops; |
| 64 | static const struct address_space_operations btrfs_symlink_aops; | 64 | static const struct address_space_operations btrfs_symlink_aops; |
| 65 | static struct file_operations btrfs_dir_file_operations; | 65 | static struct file_operations btrfs_dir_file_operations; |
| @@ -5201,7 +5201,7 @@ static int btrfs_permission(struct inode *inode, int mask) | |||
| 5201 | return generic_permission(inode, mask, btrfs_check_acl); | 5201 | return generic_permission(inode, mask, btrfs_check_acl); |
| 5202 | } | 5202 | } |
| 5203 | 5203 | ||
| 5204 | static struct inode_operations btrfs_dir_inode_operations = { | 5204 | static const struct inode_operations btrfs_dir_inode_operations = { |
| 5205 | .getattr = btrfs_getattr, | 5205 | .getattr = btrfs_getattr, |
| 5206 | .lookup = btrfs_lookup, | 5206 | .lookup = btrfs_lookup, |
| 5207 | .create = btrfs_create, | 5207 | .create = btrfs_create, |
| @@ -5219,7 +5219,7 @@ static struct inode_operations btrfs_dir_inode_operations = { | |||
| 5219 | .removexattr = btrfs_removexattr, | 5219 | .removexattr = btrfs_removexattr, |
| 5220 | .permission = btrfs_permission, | 5220 | .permission = btrfs_permission, |
| 5221 | }; | 5221 | }; |
| 5222 | static struct inode_operations btrfs_dir_ro_inode_operations = { | 5222 | static const struct inode_operations btrfs_dir_ro_inode_operations = { |
| 5223 | .lookup = btrfs_lookup, | 5223 | .lookup = btrfs_lookup, |
| 5224 | .permission = btrfs_permission, | 5224 | .permission = btrfs_permission, |
| 5225 | }; | 5225 | }; |
| @@ -5278,7 +5278,7 @@ static const struct address_space_operations btrfs_symlink_aops = { | |||
| 5278 | .releasepage = btrfs_releasepage, | 5278 | .releasepage = btrfs_releasepage, |
| 5279 | }; | 5279 | }; |
| 5280 | 5280 | ||
| 5281 | static struct inode_operations btrfs_file_inode_operations = { | 5281 | static const struct inode_operations btrfs_file_inode_operations = { |
| 5282 | .truncate = btrfs_truncate, | 5282 | .truncate = btrfs_truncate, |
| 5283 | .getattr = btrfs_getattr, | 5283 | .getattr = btrfs_getattr, |
| 5284 | .setattr = btrfs_setattr, | 5284 | .setattr = btrfs_setattr, |
| @@ -5290,7 +5290,7 @@ static struct inode_operations btrfs_file_inode_operations = { | |||
| 5290 | .fallocate = btrfs_fallocate, | 5290 | .fallocate = btrfs_fallocate, |
| 5291 | .fiemap = btrfs_fiemap, | 5291 | .fiemap = btrfs_fiemap, |
| 5292 | }; | 5292 | }; |
| 5293 | static struct inode_operations btrfs_special_inode_operations = { | 5293 | static const struct inode_operations btrfs_special_inode_operations = { |
| 5294 | .getattr = btrfs_getattr, | 5294 | .getattr = btrfs_getattr, |
| 5295 | .setattr = btrfs_setattr, | 5295 | .setattr = btrfs_setattr, |
| 5296 | .permission = btrfs_permission, | 5296 | .permission = btrfs_permission, |
| @@ -5299,7 +5299,7 @@ static struct inode_operations btrfs_special_inode_operations = { | |||
| 5299 | .listxattr = btrfs_listxattr, | 5299 | .listxattr = btrfs_listxattr, |
| 5300 | .removexattr = btrfs_removexattr, | 5300 | .removexattr = btrfs_removexattr, |
| 5301 | }; | 5301 | }; |
| 5302 | static struct inode_operations btrfs_symlink_inode_operations = { | 5302 | static const struct inode_operations btrfs_symlink_inode_operations = { |
| 5303 | .readlink = generic_readlink, | 5303 | .readlink = generic_readlink, |
| 5304 | .follow_link = page_follow_link_light, | 5304 | .follow_link = page_follow_link_light, |
| 5305 | .put_link = page_put_link, | 5305 | .put_link = page_put_link, |
diff --git a/fs/cifs/cifs_dfs_ref.c b/fs/cifs/cifs_dfs_ref.c index 606912d8f2a8..6889c0d07b82 100644 --- a/fs/cifs/cifs_dfs_ref.c +++ b/fs/cifs/cifs_dfs_ref.c | |||
| @@ -385,7 +385,7 @@ out_err: | |||
| 385 | goto out; | 385 | goto out; |
| 386 | } | 386 | } |
| 387 | 387 | ||
| 388 | struct inode_operations cifs_dfs_referral_inode_operations = { | 388 | const struct inode_operations cifs_dfs_referral_inode_operations = { |
| 389 | .follow_link = cifs_dfs_follow_mountpoint, | 389 | .follow_link = cifs_dfs_follow_mountpoint, |
| 390 | }; | 390 | }; |
| 391 | 391 | ||
diff --git a/fs/cifs/cifsfs.h b/fs/cifs/cifsfs.h index 094325e3f714..ac2b24c192f8 100644 --- a/fs/cifs/cifsfs.h +++ b/fs/cifs/cifsfs.h | |||
| @@ -67,7 +67,7 @@ extern int cifs_setattr(struct dentry *, struct iattr *); | |||
| 67 | 67 | ||
| 68 | extern const struct inode_operations cifs_file_inode_ops; | 68 | extern const struct inode_operations cifs_file_inode_ops; |
| 69 | extern const struct inode_operations cifs_symlink_inode_ops; | 69 | extern const struct inode_operations cifs_symlink_inode_ops; |
| 70 | extern struct inode_operations cifs_dfs_referral_inode_operations; | 70 | extern const struct inode_operations cifs_dfs_referral_inode_operations; |
| 71 | 71 | ||
| 72 | 72 | ||
| 73 | /* Functions related to files and directories */ | 73 | /* Functions related to files and directories */ |
diff --git a/fs/inode.c b/fs/inode.c index 798052f87035..f5ff71cb3e2b 100644 --- a/fs/inode.c +++ b/fs/inode.c | |||
| @@ -123,7 +123,7 @@ static void wake_up_inode(struct inode *inode) | |||
| 123 | int inode_init_always(struct super_block *sb, struct inode *inode) | 123 | int inode_init_always(struct super_block *sb, struct inode *inode) |
| 124 | { | 124 | { |
| 125 | static const struct address_space_operations empty_aops; | 125 | static const struct address_space_operations empty_aops; |
| 126 | static struct inode_operations empty_iops; | 126 | static const struct inode_operations empty_iops; |
| 127 | static const struct file_operations empty_fops; | 127 | static const struct file_operations empty_fops; |
| 128 | struct address_space *const mapping = &inode->i_data; | 128 | struct address_space *const mapping = &inode->i_data; |
| 129 | 129 | ||
diff --git a/fs/nilfs2/file.c b/fs/nilfs2/file.c index 6bd84a0d8238..fc8278c77cdd 100644 --- a/fs/nilfs2/file.c +++ b/fs/nilfs2/file.c | |||
| @@ -151,7 +151,7 @@ struct file_operations nilfs_file_operations = { | |||
| 151 | .splice_read = generic_file_splice_read, | 151 | .splice_read = generic_file_splice_read, |
| 152 | }; | 152 | }; |
| 153 | 153 | ||
| 154 | struct inode_operations nilfs_file_inode_operations = { | 154 | const struct inode_operations nilfs_file_inode_operations = { |
| 155 | .truncate = nilfs_truncate, | 155 | .truncate = nilfs_truncate, |
| 156 | .setattr = nilfs_setattr, | 156 | .setattr = nilfs_setattr, |
| 157 | .permission = nilfs_permission, | 157 | .permission = nilfs_permission, |
diff --git a/fs/nilfs2/mdt.c b/fs/nilfs2/mdt.c index 680e86c8d435..b18c4998f8d0 100644 --- a/fs/nilfs2/mdt.c +++ b/fs/nilfs2/mdt.c | |||
| @@ -432,7 +432,7 @@ static const struct address_space_operations def_mdt_aops = { | |||
| 432 | .sync_page = block_sync_page, | 432 | .sync_page = block_sync_page, |
| 433 | }; | 433 | }; |
| 434 | 434 | ||
| 435 | static struct inode_operations def_mdt_iops; | 435 | static const struct inode_operations def_mdt_iops; |
| 436 | static struct file_operations def_mdt_fops; | 436 | static struct file_operations def_mdt_fops; |
| 437 | 437 | ||
| 438 | /* | 438 | /* |
diff --git a/fs/nilfs2/namei.c b/fs/nilfs2/namei.c index df70dadb336f..ed02e886fa79 100644 --- a/fs/nilfs2/namei.c +++ b/fs/nilfs2/namei.c | |||
| @@ -448,7 +448,7 @@ out: | |||
| 448 | return err; | 448 | return err; |
| 449 | } | 449 | } |
| 450 | 450 | ||
| 451 | struct inode_operations nilfs_dir_inode_operations = { | 451 | const struct inode_operations nilfs_dir_inode_operations = { |
| 452 | .create = nilfs_create, | 452 | .create = nilfs_create, |
| 453 | .lookup = nilfs_lookup, | 453 | .lookup = nilfs_lookup, |
| 454 | .link = nilfs_link, | 454 | .link = nilfs_link, |
| @@ -462,12 +462,12 @@ struct inode_operations nilfs_dir_inode_operations = { | |||
| 462 | .permission = nilfs_permission, | 462 | .permission = nilfs_permission, |
| 463 | }; | 463 | }; |
| 464 | 464 | ||
| 465 | struct inode_operations nilfs_special_inode_operations = { | 465 | const struct inode_operations nilfs_special_inode_operations = { |
| 466 | .setattr = nilfs_setattr, | 466 | .setattr = nilfs_setattr, |
