diff options
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/inode.c | 2 | ||||
-rw-r--r-- | arch/s390/hypfs/inode.c | 4 | ||||
-rw-r--r-- | drivers/isdn/capi/capifs.c | 2 | ||||
-rw-r--r-- | drivers/misc/ibmasm/ibmasmfs.c | 2 | ||||
-rw-r--r-- | drivers/oprofile/oprofilefs.c | 2 | ||||
-rw-r--r-- | drivers/usb/core/inode.c | 3 | ||||
-rw-r--r-- | drivers/usb/gadget/inode.c | 2 | ||||
-rw-r--r-- | fs/befs/linuxvfs.c | 2 | ||||
-rw-r--r-- | fs/btrfs/super.c | 4 | ||||
-rw-r--r-- | fs/nilfs2/super.c | 2 | ||||
-rw-r--r-- | fs/omfs/inode.c | 2 | ||||
-rw-r--r-- | fs/squashfs/super.c | 4 | ||||
-rw-r--r-- | fs/super.c | 2 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_super.c | 4 | ||||
-rw-r--r-- | ipc/mqueue.c | 4 | ||||
-rw-r--r-- | kernel/cgroup.c | 2 | ||||
-rw-r--r-- | net/socket.c | 2 | ||||
-rw-r--r-- | net/sunrpc/rpc_pipe.c | 2 |
18 files changed, 23 insertions, 24 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index 24b30b6909c4..78f2a52f7288 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c | |||
@@ -773,7 +773,7 @@ static int | |||
773 | spufs_fill_super(struct super_block *sb, void *data, int silent) | 773 | spufs_fill_super(struct super_block *sb, void *data, int silent) |
774 | { | 774 | { |
775 | struct spufs_sb_info *info; | 775 | struct spufs_sb_info *info; |
776 | static struct super_operations s_ops = { | 776 | static const struct super_operations s_ops = { |
777 | .alloc_inode = spufs_alloc_inode, | 777 | .alloc_inode = spufs_alloc_inode, |
778 | .destroy_inode = spufs_destroy_inode, | 778 | .destroy_inode = spufs_destroy_inode, |
779 | .statfs = simple_statfs, | 779 | .statfs = simple_statfs, |
diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c index bd9914b89488..dc2d66683859 100644 --- a/arch/s390/hypfs/inode.c +++ b/arch/s390/hypfs/inode.c | |||
@@ -41,7 +41,7 @@ struct hypfs_sb_info { | |||
41 | 41 | ||
42 | static const struct file_operations hypfs_file_ops; | 42 | static const struct file_operations hypfs_file_ops; |
43 | static struct file_system_type hypfs_type; | 43 | static struct file_system_type hypfs_type; |
44 | static struct super_operations hypfs_s_ops; | 44 | static const struct super_operations hypfs_s_ops; |
45 | 45 | ||
46 | /* start of list of all dentries, which have to be deleted on update */ | 46 | /* start of list of all dentries, which have to be deleted on update */ |
47 | static struct dentry *hypfs_last_dentry; | 47 | static struct dentry *hypfs_last_dentry; |
@@ -472,7 +472,7 @@ static struct file_system_type hypfs_type = { | |||
472 | .kill_sb = hypfs_kill_super | 472 | .kill_sb = hypfs_kill_super |
473 | }; | 473 | }; |
474 | 474 | ||
475 | static struct super_operations hypfs_s_ops = { | 475 | static const struct super_operations hypfs_s_ops = { |
476 | .statfs = simple_statfs, | 476 | .statfs = simple_statfs, |
477 | .drop_inode = hypfs_drop_inode, | 477 | .drop_inode = hypfs_drop_inode, |
478 | .show_options = hypfs_show_options, | 478 | .show_options = hypfs_show_options, |
diff --git a/drivers/isdn/capi/capifs.c b/drivers/isdn/capi/capifs.c index bff72d81f263..9f8f67b6c07f 100644 --- a/drivers/isdn/capi/capifs.c +++ b/drivers/isdn/capi/capifs.c | |||
@@ -89,7 +89,7 @@ static int capifs_remount(struct super_block *s, int *flags, char *data) | |||
89 | return 0; | 89 | return 0; |
90 | } | 90 | } |
91 | 91 | ||
92 | static struct super_operations capifs_sops = | 92 | static const struct super_operations capifs_sops = |
93 | { | 93 | { |
94 | .statfs = simple_statfs, | 94 | .statfs = simple_statfs, |
95 | .remount_fs = capifs_remount, | 95 | .remount_fs = capifs_remount, |
diff --git a/drivers/misc/ibmasm/ibmasmfs.c b/drivers/misc/ibmasm/ibmasmfs.c index de966a6fb7e6..aecf40ecb3a4 100644 --- a/drivers/misc/ibmasm/ibmasmfs.c +++ b/drivers/misc/ibmasm/ibmasmfs.c | |||
@@ -97,7 +97,7 @@ static int ibmasmfs_get_super(struct file_system_type *fst, | |||
97 | return get_sb_single(fst, flags, data, ibmasmfs_fill_super, mnt); | 97 | return get_sb_single(fst, flags, data, ibmasmfs_fill_super, mnt); |
98 | } | 98 | } |
99 | 99 | ||
100 | static struct super_operations ibmasmfs_s_ops = { | 100 | static const struct super_operations ibmasmfs_s_ops = { |
101 | .statfs = simple_statfs, | 101 | .statfs = simple_statfs, |
102 | .drop_inode = generic_delete_inode, | 102 | .drop_inode = generic_delete_inode, |
103 | }; | 103 | }; |
diff --git a/drivers/oprofile/oprofilefs.c b/drivers/oprofile/oprofilefs.c index b7e4cee24269..2766a6d3c2e9 100644 --- a/drivers/oprofile/oprofilefs.c +++ b/drivers/oprofile/oprofilefs.c | |||
@@ -35,7 +35,7 @@ static struct inode *oprofilefs_get_inode(struct super_block *sb, int mode) | |||
35 | } | 35 | } |
36 | 36 | ||
37 | 37 | ||
38 | static struct super_operations s_ops = { | 38 | static const struct super_operations s_ops = { |
39 | .statfs = simple_statfs, | 39 | .statfs = simple_statfs, |
40 | .drop_inode = generic_delete_inode, | 40 | .drop_inode = generic_delete_inode, |
41 | }; | 41 | }; |
diff --git a/drivers/usb/core/inode.c b/drivers/usb/core/inode.c index ffe75e83787c..97b40ce133f0 100644 --- a/drivers/usb/core/inode.c +++ b/drivers/usb/core/inode.c | |||
@@ -48,7 +48,6 @@ | |||
48 | #define USBFS_DEFAULT_BUSMODE (S_IXUGO | S_IRUGO) | 48 | #define USBFS_DEFAULT_BUSMODE (S_IXUGO | S_IRUGO) |
49 | #define USBFS_DEFAULT_LISTMODE S_IRUGO | 49 | #define USBFS_DEFAULT_LISTMODE S_IRUGO |
50 | 50 | ||
51 | static struct super_operations usbfs_ops; | ||
52 | static const struct file_operations default_file_operations; | 51 | static const struct file_operations default_file_operations; |
53 | static struct vfsmount *usbfs_mount; | 52 | static struct vfsmount *usbfs_mount; |
54 | static int usbfs_mount_count; /* = 0 */ | 53 | static int usbfs_mount_count; /* = 0 */ |
@@ -449,7 +448,7 @@ static const struct file_operations default_file_operations = { | |||
449 | .llseek = default_file_lseek, | 448 | .llseek = default_file_lseek, |
450 | }; | 449 | }; |
451 | 450 | ||
452 | static struct super_operations usbfs_ops = { | 451 | static const struct super_operations usbfs_ops = { |
453 | .statfs = simple_statfs, | 452 | .statfs = simple_statfs, |
454 | .drop_inode = generic_delete_inode, | 453 | .drop_inode = generic_delete_inode, |
455 | .remount_fs = remount, | 454 | .remount_fs = remount, |
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c index 7d33f50b5874..c44367fea185 100644 --- a/drivers/usb/gadget/inode.c +++ b/drivers/usb/gadget/inode.c | |||
@@ -2033,7 +2033,7 @@ gadgetfs_create_file (struct super_block *sb, char const *name, | |||
2033 | return inode; | 2033 | return inode; |
2034 | } | 2034 | } |
2035 | 2035 | ||
2036 | static struct super_operations gadget_fs_operations = { | 2036 | static const struct super_operations gadget_fs_operations = { |
2037 | .statfs = simple_statfs, | 2037 | .statfs = simple_statfs, |
2038 | .drop_inode = generic_delete_inode, | 2038 | .drop_inode = generic_delete_inode, |
2039 | }; | 2039 | }; |
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 615d5496fe0f..dd376c124e71 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c | |||
@@ -842,7 +842,7 @@ befs_fill_super(struct super_block *sb, void *data, int silent) | |||
842 | sb->s_magic = BEFS_SUPER_MAGIC; | 842 | sb->s_magic = BEFS_SUPER_MAGIC; |
843 | /* Set real blocksize of fs */ | 843 | /* Set real blocksize of fs */ |
844 | sb_set_blocksize(sb, (ulong) befs_sb->block_size); | 844 | sb_set_blocksize(sb, (ulong) befs_sb->block_size); |
845 | sb->s_op = (struct super_operations *) &befs_sops; | 845 | sb->s_op = &befs_sops; |
846 | root = befs_iget(sb, iaddr2blockno(sb, &(befs_sb->root_dir))); | 846 | root = befs_iget(sb, iaddr2blockno(sb, &(befs_sb->root_dir))); |
847 | if (IS_ERR(root)) { | 847 | if (IS_ERR(root)) { |
848 | ret = PTR_ERR(root); | 848 | ret = PTR_ERR(root); |
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 6d6d06cb6dfc..2db17cd66fc5 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -51,7 +51,7 @@ | |||
51 | #include "export.h" | 51 | #include "export.h" |
52 | #include "compression.h" | 52 | #include "compression.h" |
53 | 53 | ||
54 | static struct super_operations btrfs_super_ops; | 54 | static const struct super_operations btrfs_super_ops; |
55 | 55 | ||
56 | static void btrfs_put_super(struct super_block *sb) | 56 | static void btrfs_put_super(struct super_block *sb) |
57 | { | 57 | { |
@@ -675,7 +675,7 @@ static int btrfs_unfreeze(struct super_block *sb) | |||
675 | return 0; | 675 | return 0; |
676 | } | 676 | } |
677 | 677 | ||
678 | static struct super_operations btrfs_super_ops = { | 678 | static const struct super_operations btrfs_super_ops = { |
679 | .delete_inode = btrfs_delete_inode, | 679 | .delete_inode = btrfs_delete_inode, |
680 | .put_super = btrfs_put_super, | 680 | .put_super = btrfs_put_super, |
681 | .sync_fs = btrfs_sync_fs, | 681 | .sync_fs = btrfs_sync_fs, |
diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c index 55f3d6b60732..1c83f44d29a4 100644 --- a/fs/nilfs2/super.c +++ b/fs/nilfs2/super.c | |||
@@ -504,7 +504,7 @@ static int nilfs_show_options(struct seq_file *seq, struct vfsmount *vfs) | |||
504 | return 0; | 504 | return 0; |
505 | } | 505 | } |
506 | 506 | ||
507 | static struct super_operations nilfs_sops = { | 507 | static const struct super_operations nilfs_sops = { |
508 | .alloc_inode = nilfs_alloc_inode, | 508 | .alloc_inode = nilfs_alloc_inode, |
509 | .destroy_inode = nilfs_destroy_inode, | 509 | .destroy_inode = nilfs_destroy_inode, |
510 | .dirty_inode = nilfs_dirty_inode, | 510 | .dirty_inode = nilfs_dirty_inode, |
diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c index 379ae5fb4411..f3b7c1541f3a 100644 --- a/fs/omfs/inode.c +++ b/fs/omfs/inode.c | |||
@@ -278,7 +278,7 @@ static int omfs_statfs(struct dentry *dentry, struct kstatfs *buf) | |||
278 | return 0; | 278 | return 0; |
279 | } | 279 | } |
280 | 280 | ||
281 | static struct super_operations omfs_sops = { | 281 | static const struct super_operations omfs_sops = { |
282 | .write_inode = omfs_write_inode, | 282 | .write_inode = omfs_write_inode, |
283 | .delete_inode = omfs_delete_inode, | 283 | .delete_inode = omfs_delete_inode, |
284 | .put_super = omfs_put_super, | 284 | .put_super = omfs_put_super, |
diff --git a/fs/squashfs/super.c b/fs/squashfs/super.c index cb5fc57e370b..6c197ef53add 100644 --- a/fs/squashfs/super.c +++ b/fs/squashfs/super.c | |||
@@ -44,7 +44,7 @@ | |||
44 | #include "squashfs.h" | 44 | #include "squashfs.h" |
45 | 45 | ||
46 | static struct file_system_type squashfs_fs_type; | 46 | static struct file_system_type squashfs_fs_type; |
47 | static struct super_operations squashfs_super_ops; | 47 | static const struct super_operations squashfs_super_ops; |
48 | 48 | ||
49 | static int supported_squashfs_filesystem(short major, short minor, short comp) | 49 | static int supported_squashfs_filesystem(short major, short minor, short comp) |
50 | { | 50 | { |
@@ -444,7 +444,7 @@ static struct file_system_type squashfs_fs_type = { | |||
444 | .fs_flags = FS_REQUIRES_DEV | 444 | .fs_flags = FS_REQUIRES_DEV |
445 | }; | 445 | }; |
446 | 446 | ||
447 | static struct super_operations squashfs_super_ops = { | 447 | static const struct super_operations squashfs_super_ops = { |
448 | .alloc_inode = squashfs_alloc_inode, | 448 | .alloc_inode = squashfs_alloc_inode, |
449 | .destroy_inode = squashfs_destroy_inode, | 449 | .destroy_inode = squashfs_destroy_inode, |
450 | .statfs = squashfs_statfs, | 450 | .statfs = squashfs_statfs, |
diff --git a/fs/super.c b/fs/super.c index b03fea8fbfb6..0e7207b9815c 100644 --- a/fs/super.c +++ b/fs/super.c | |||
@@ -54,7 +54,7 @@ DEFINE_SPINLOCK(sb_lock); | |||
54 | static struct super_block *alloc_super(struct file_system_type *type) | 54 | static struct super_block *alloc_super(struct file_system_type *type) |
55 | { | 55 | { |
56 | struct super_block *s = kzalloc(sizeof(struct super_block), GFP_USER); | 56 | struct super_block *s = kzalloc(sizeof(struct super_block), GFP_USER); |
57 | static struct super_operations default_op; | 57 | static const struct super_operations default_op; |
58 | 58 | ||
59 | if (s) { | 59 | if (s) { |
60 | if (security_sb_alloc(s)) { | 60 | if (security_sb_alloc(s)) { |
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c index 5d7c60ac77b4..bdd41c8c342f 100644 --- a/fs/xfs/linux-2.6/xfs_super.c +++ b/fs/xfs/linux-2.6/xfs_super.c | |||
@@ -67,7 +67,7 @@ | |||
67 | #include <linux/freezer.h> | 67 | #include <linux/freezer.h> |
68 | #include <linux/parser.h> | 68 | #include <linux/parser.h> |
69 | 69 | ||
70 | static struct super_operations xfs_super_operations; | 70 | static const struct super_operations xfs_super_operations; |
71 | static kmem_zone_t *xfs_ioend_zone; | 71 | static kmem_zone_t *xfs_ioend_zone; |
72 | mempool_t *xfs_ioend_pool; | 72 | mempool_t *xfs_ioend_pool; |
73 | 73 | ||
@@ -1536,7 +1536,7 @@ xfs_fs_get_sb( | |||
1536 | mnt); | 1536 | mnt); |
1537 | } | 1537 | } |
1538 | 1538 | ||
1539 | static struct super_operations xfs_super_operations = { | 1539 | static const struct super_operations xfs_super_operations = { |
1540 | .alloc_inode = xfs_fs_alloc_inode, | 1540 | .alloc_inode = xfs_fs_alloc_inode, |
1541 | .destroy_inode = xfs_fs_destroy_inode, | 1541 | .destroy_inode = xfs_fs_destroy_inode, |
1542 | .write_inode = xfs_fs_write_inode, | 1542 | .write_inode = xfs_fs_write_inode, |
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index c5e68adc6732..ee9d69707c0a 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
@@ -77,7 +77,7 @@ struct mqueue_inode_info { | |||
77 | 77 | ||
78 | static const struct inode_operations mqueue_dir_inode_operations; | 78 | static const struct inode_operations mqueue_dir_inode_operations; |
79 | static const struct file_operations mqueue_file_operations; | 79 | static const struct file_operations mqueue_file_operations; |
80 | static struct super_operations mqueue_super_ops; | 80 | static const struct super_operations mqueue_super_ops; |
81 | static void remove_notification(struct mqueue_inode_info *info); | 81 | static void remove_notification(struct mqueue_inode_info *info); |
82 | 82 | ||
83 | static struct kmem_cache *mqueue_inode_cachep; | 83 | static struct kmem_cache *mqueue_inode_cachep; |
@@ -1224,7 +1224,7 @@ static const struct file_operations mqueue_file_operations = { | |||
1224 | .read = mqueue_read_file, | 1224 | .read = mqueue_read_file, |
1225 | }; | 1225 | }; |
1226 | 1226 | ||
1227 | static struct super_operations mqueue_super_ops = { | 1227 | static const struct super_operations mqueue_super_ops = { |
1228 | .alloc_inode = mqueue_alloc_inode, | 1228 | .alloc_inode = mqueue_alloc_inode, |
1229 | .destroy_inode = mqueue_destroy_inode, | 1229 | .destroy_inode = mqueue_destroy_inode, |
1230 | .statfs = simple_statfs, | 1230 | .statfs = simple_statfs, |
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index c7ece8f027f2..39dde299a920 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -961,7 +961,7 @@ static int cgroup_remount(struct super_block *sb, int *flags, char *data) | |||
961 | return ret; | 961 | return ret; |
962 | } | 962 | } |
963 | 963 | ||
964 | static struct super_operations cgroup_ops = { | 964 | static const struct super_operations cgroup_ops = { |
965 | .statfs = simple_statfs, | 965 | .statfs = simple_statfs, |
966 | .drop_inode = generic_delete_inode, | 966 | .drop_inode = generic_delete_inode, |
967 | .show_options = cgroup_show_options, | 967 | .show_options = cgroup_show_options, |
diff --git a/net/socket.c b/net/socket.c index 2a022c00d85c..0ad02ae61a91 100644 --- a/net/socket.c +++ b/net/socket.c | |||
@@ -285,7 +285,7 @@ static int init_inodecache(void) | |||
285 | return 0; | 285 | return 0; |
286 | } | 286 | } |
287 | 287 | ||
288 | static struct super_operations sockfs_ops = { | 288 | static const struct super_operations sockfs_ops = { |
289 | .alloc_inode = sock_alloc_inode, | 289 | .alloc_inode = sock_alloc_inode, |
290 | .destroy_inode =sock_destroy_inode, | 290 | .destroy_inode =sock_destroy_inode, |
291 | .statfs = simple_statfs, | 291 | .statfs = simple_statfs, |
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 7f676bdf70d3..858a443f418f 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c | |||
@@ -930,7 +930,7 @@ void rpc_remove_cache_dir(struct dentry *dentry) | |||
930 | /* | 930 | /* |
931 | * populate the filesystem | 931 | * populate the filesystem |
932 | */ | 932 | */ |
933 | static struct super_operations s_ops = { | 933 | static const struct super_operations s_ops = { |
934 | .alloc_inode = rpc_alloc_inode, | 934 | .alloc_inode = rpc_alloc_inode, |
935 | .destroy_inode = rpc_destroy_inode, | 935 | .destroy_inode = rpc_destroy_inode, |
936 | .statfs = simple_statfs, | 936 | .statfs = simple_statfs, |