diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/proc/base.c | 20 | ||||
-rw-r--r-- | fs/proc/generic.c | 6 | ||||
-rw-r--r-- | fs/proc/root.c | 2 | ||||
-rw-r--r-- | fs/qnx4/dir.c | 2 | ||||
-rw-r--r-- | fs/qnx4/file.c | 2 | ||||
-rw-r--r-- | fs/ramfs/file-mmu.c | 2 | ||||
-rw-r--r-- | fs/ramfs/file-nommu.c | 2 | ||||
-rw-r--r-- | fs/ramfs/inode.c | 4 | ||||
-rw-r--r-- | fs/ramfs/internal.h | 2 | ||||
-rw-r--r-- | fs/reiserfs/file.c | 2 | ||||
-rw-r--r-- | fs/reiserfs/namei.c | 6 | ||||
-rw-r--r-- | fs/romfs/inode.c | 2 | ||||
-rw-r--r-- | fs/smbfs/dir.c | 4 | ||||
-rw-r--r-- | fs/smbfs/file.c | 2 | ||||
-rw-r--r-- | fs/smbfs/proto.h | 8 | ||||
-rw-r--r-- | fs/smbfs/symlink.c | 2 | ||||
-rw-r--r-- | fs/sysfs/dir.c | 2 | ||||
-rw-r--r-- | fs/sysfs/inode.c | 2 | ||||
-rw-r--r-- | fs/sysfs/symlink.c | 2 | ||||
-rw-r--r-- | fs/sysfs/sysfs.h | 4 | ||||
-rw-r--r-- | fs/sysv/file.c | 2 | ||||
-rw-r--r-- | fs/sysv/inode.c | 2 | ||||
-rw-r--r-- | fs/sysv/namei.c | 2 | ||||
-rw-r--r-- | fs/sysv/symlink.c | 2 | ||||
-rw-r--r-- | fs/sysv/sysv.h | 6 | ||||
-rw-r--r-- | fs/udf/file.c | 2 | ||||
-rw-r--r-- | fs/udf/namei.c | 2 | ||||
-rw-r--r-- | fs/udf/udfdecl.h | 4 | ||||
-rw-r--r-- | fs/ufs/namei.c | 2 | ||||
-rw-r--r-- | fs/ufs/symlink.c | 2 | ||||
-rw-r--r-- | fs/ufs/truncate.c | 2 | ||||
-rw-r--r-- | fs/vfat/namei.c | 2 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_iops.c | 6 | ||||
-rw-r--r-- | fs/xfs/linux-2.6/xfs_iops.h | 6 |
34 files changed, 60 insertions, 60 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 7b1ded63fa63..4f5745af8c19 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -93,7 +93,7 @@ struct pid_entry { | |||
93 | int len; | 93 | int len; |
94 | char *name; | 94 | char *name; |
95 | mode_t mode; | 95 | mode_t mode; |
96 | struct inode_operations *iop; | 96 | const struct inode_operations *iop; |
97 | const struct file_operations *fop; | 97 | const struct file_operations *fop; |
98 | union proc_op op; | 98 | union proc_op op; |
99 | }; | 99 | }; |
@@ -352,7 +352,7 @@ static int proc_setattr(struct dentry *dentry, struct iattr *attr) | |||
352 | return error; | 352 | return error; |
353 | } | 353 | } |
354 | 354 | ||
355 | static struct inode_operations proc_def_inode_operations = { | 355 | static const struct inode_operations proc_def_inode_operations = { |
356 | .setattr = proc_setattr, | 356 | .setattr = proc_setattr, |
357 | }; | 357 | }; |
358 | 358 | ||
@@ -980,7 +980,7 @@ out: | |||
980 | return error; | 980 | return error; |
981 | } | 981 | } |
982 | 982 | ||
983 | static struct inode_operations proc_pid_link_inode_operations = { | 983 | static const struct inode_operations proc_pid_link_inode_operations = { |
984 | .readlink = proc_pid_readlink, | 984 | .readlink = proc_pid_readlink, |
985 | .follow_link = proc_pid_follow_link, | 985 | .follow_link = proc_pid_follow_link, |
986 | .setattr = proc_setattr, | 986 | .setattr = proc_setattr, |
@@ -1416,7 +1416,7 @@ static const struct file_operations proc_fd_operations = { | |||
1416 | /* | 1416 | /* |
1417 | * proc directories can do almost nothing.. | 1417 | * proc directories can do almost nothing.. |
1418 | */ | 1418 | */ |
1419 | static struct inode_operations proc_fd_inode_operations = { | 1419 | static const struct inode_operations proc_fd_inode_operations = { |
1420 | .lookup = proc_lookupfd, | 1420 | .lookup = proc_lookupfd, |
1421 | .setattr = proc_setattr, | 1421 | .setattr = proc_setattr, |
1422 | }; | 1422 | }; |
@@ -1656,7 +1656,7 @@ static struct dentry *proc_attr_dir_lookup(struct inode *dir, | |||
1656 | attr_dir_stuff, ARRAY_SIZE(attr_dir_stuff)); | 1656 | attr_dir_stuff, ARRAY_SIZE(attr_dir_stuff)); |
1657 | } | 1657 | } |
1658 | 1658 | ||
1659 | static struct inode_operations proc_attr_dir_inode_operations = { | 1659 | static const struct inode_operations proc_attr_dir_inode_operations = { |
1660 | .lookup = proc_attr_dir_lookup, | 1660 | .lookup = proc_attr_dir_lookup, |
1661 | .getattr = pid_getattr, | 1661 | .getattr = pid_getattr, |
1662 | .setattr = proc_setattr, | 1662 | .setattr = proc_setattr, |
@@ -1682,7 +1682,7 @@ static void *proc_self_follow_link(struct dentry *dentry, struct nameidata *nd) | |||
1682 | return ERR_PTR(vfs_follow_link(nd,tmp)); | 1682 | return ERR_PTR(vfs_follow_link(nd,tmp)); |
1683 | } | 1683 | } |
1684 | 1684 | ||
1685 | static struct inode_operations proc_self_inode_operations = { | 1685 | static const struct inode_operations proc_self_inode_operations = { |
1686 | .readlink = proc_self_readlink, | 1686 | .readlink = proc_self_readlink, |
1687 | .follow_link = proc_self_follow_link, | 1687 | .follow_link = proc_self_follow_link, |
1688 | }; | 1688 | }; |
@@ -1835,7 +1835,7 @@ static int proc_pid_io_accounting(struct task_struct *task, char *buffer) | |||
1835 | * Thread groups | 1835 | * Thread groups |
1836 | */ | 1836 | */ |
1837 | static const struct file_operations proc_task_operations; | 1837 | static const struct file_operations proc_task_operations; |
1838 | static struct inode_operations proc_task_inode_operations; | 1838 | static const struct inode_operations proc_task_inode_operations; |
1839 | 1839 | ||
1840 | static struct pid_entry tgid_base_stuff[] = { | 1840 | static struct pid_entry tgid_base_stuff[] = { |
1841 | DIR("task", S_IRUGO|S_IXUGO, task), | 1841 | DIR("task", S_IRUGO|S_IXUGO, task), |
@@ -1904,7 +1904,7 @@ static struct dentry *proc_tgid_base_lookup(struct inode *dir, struct dentry *de | |||
1904 | tgid_base_stuff, ARRAY_SIZE(tgid_base_stuff)); | 1904 | tgid_base_stuff, ARRAY_SIZE(tgid_base_stuff)); |
1905 | } | 1905 | } |
1906 | 1906 | ||
1907 | static struct inode_operations proc_tgid_base_inode_operations = { | 1907 | static const struct inode_operations proc_tgid_base_inode_operations = { |
1908 | .lookup = proc_tgid_base_lookup, | 1908 | .lookup = proc_tgid_base_lookup, |
1909 | .getattr = pid_getattr, | 1909 | .getattr = pid_getattr, |
1910 | .setattr = proc_setattr, | 1910 | .setattr = proc_setattr, |
@@ -2182,7 +2182,7 @@ static const struct file_operations proc_tid_base_operations = { | |||
2182 | .readdir = proc_tid_base_readdir, | 2182 | .readdir = proc_tid_base_readdir, |
2183 | }; | 2183 | }; |
2184 | 2184 | ||
2185 | static struct inode_operations proc_tid_base_inode_operations = { | 2185 | static const struct inode_operations proc_tid_base_inode_operations = { |
2186 | .lookup = proc_tid_base_lookup, | 2186 | .lookup = proc_tid_base_lookup, |
2187 | .getattr = pid_getattr, | 2187 | .getattr = pid_getattr, |
2188 | .setattr = proc_setattr, | 2188 | .setattr = proc_setattr, |
@@ -2408,7 +2408,7 @@ static int proc_task_getattr(struct vfsmount *mnt, struct dentry *dentry, struct | |||
2408 | return 0; | 2408 | return 0; |
2409 | } | 2409 | } |
2410 | 2410 | ||
2411 | static struct inode_operations proc_task_inode_operations = { | 2411 | static const struct inode_operations proc_task_inode_operations = { |
2412 | .lookup = proc_task_lookup, | 2412 | .lookup = proc_task_lookup, |
2413 | .getattr = proc_task_getattr, | 2413 | .getattr = proc_task_getattr, |
2414 | .setattr = proc_setattr, | 2414 | .setattr = proc_setattr, |
diff --git a/fs/proc/generic.c b/fs/proc/generic.c index aa52f1080e62..0cdc00d9d97e 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c | |||
@@ -265,7 +265,7 @@ static int proc_getattr(struct vfsmount *mnt, struct dentry *dentry, | |||
265 | return 0; | 265 | return 0; |
266 | } | 266 | } |
267 | 267 | ||
268 | static struct inode_operations proc_file_inode_operations = { | 268 | static const struct inode_operations proc_file_inode_operations = { |
269 | .setattr = proc_notify_change, | 269 | .setattr = proc_notify_change, |
270 | }; | 270 | }; |
271 | 271 | ||
@@ -357,7 +357,7 @@ static void *proc_follow_link(struct dentry *dentry, struct nameidata *nd) | |||
357 | return NULL; | 357 | return NULL; |
358 | } | 358 | } |
359 | 359 | ||
360 | static struct inode_operations proc_link_inode_operations = { | 360 | static const struct inode_operations proc_link_inode_operations = { |
361 | .readlink = generic_readlink, | 361 | .readlink = generic_readlink, |
362 | .follow_link = proc_follow_link, | 362 | .follow_link = proc_follow_link, |
363 | }; | 363 | }; |
@@ -505,7 +505,7 @@ static const struct file_operations proc_dir_operations = { | |||
505 | /* | 505 | /* |
506 | * proc directories can do almost nothing.. | 506 | * proc directories can do almost nothing.. |
507 | */ | 507 | */ |
508 | static struct inode_operations proc_dir_inode_operations = { | 508 | static const struct inode_operations proc_dir_inode_operations = { |
509 | .lookup = proc_lookup, | 509 | .lookup = proc_lookup, |
510 | .getattr = proc_getattr, | 510 | .getattr = proc_getattr, |
511 | .setattr = proc_notify_change, | 511 | .setattr = proc_notify_change, |
diff --git a/fs/proc/root.c b/fs/proc/root.c index 81c92e967a98..af154458b540 100644 --- a/fs/proc/root.c +++ b/fs/proc/root.c | |||
@@ -144,7 +144,7 @@ static const struct file_operations proc_root_operations = { | |||
144 | /* | 144 | /* |
145 | * proc root can do almost nothing.. | 145 | * proc root can do almost nothing.. |
146 | */ | 146 | */ |
147 | static struct inode_operations proc_root_inode_operations = { | 147 | static const struct inode_operations proc_root_inode_operations = { |
148 | .lookup = proc_root_lookup, | 148 | .lookup = proc_root_lookup, |
149 | .getattr = proc_root_getattr, | 149 | .getattr = proc_root_getattr, |
150 | }; | 150 | }; |
diff --git a/fs/qnx4/dir.c b/fs/qnx4/dir.c index c94db1db7a71..ea9ffefb48ad 100644 --- a/fs/qnx4/dir.c +++ b/fs/qnx4/dir.c | |||
@@ -87,7 +87,7 @@ const struct file_operations qnx4_dir_operations = | |||
87 | .fsync = file_fsync, | 87 | .fsync = file_fsync, |
88 | }; | 88 | }; |
89 | 89 | ||
90 | struct inode_operations qnx4_dir_inode_operations = | 90 | const struct inode_operations qnx4_dir_inode_operations = |
91 | { | 91 | { |
92 | .lookup = qnx4_lookup, | 92 | .lookup = qnx4_lookup, |
93 | #ifdef CONFIG_QNX4FS_RW | 93 | #ifdef CONFIG_QNX4FS_RW |
diff --git a/fs/qnx4/file.c b/fs/qnx4/file.c index 467e5ac7280e..44649981bbc8 100644 --- a/fs/qnx4/file.c +++ b/fs/qnx4/file.c | |||
@@ -33,7 +33,7 @@ const struct file_operations qnx4_file_operations = | |||
33 | #endif | 33 | #endif |
34 | }; | 34 | }; |
35 | 35 | ||
36 | struct inode_operations qnx4_file_inode_operations = | 36 | const struct inode_operations qnx4_file_inode_operations = |
37 | { | 37 | { |
38 | #ifdef CONFIG_QNX4FS_RW | 38 | #ifdef CONFIG_QNX4FS_RW |
39 | .truncate = qnx4_truncate, | 39 | .truncate = qnx4_truncate, |
diff --git a/fs/ramfs/file-mmu.c b/fs/ramfs/file-mmu.c index b935a3dd4b65..2f14774a124f 100644 --- a/fs/ramfs/file-mmu.c +++ b/fs/ramfs/file-mmu.c | |||
@@ -45,6 +45,6 @@ const struct file_operations ramfs_file_operations = { | |||
45 | .llseek = generic_file_llseek, | 45 | .llseek = generic_file_llseek, |
46 | }; | 46 | }; |
47 | 47 | ||
48 | struct inode_operations ramfs_file_inode_operations = { | 48 | const struct inode_operations ramfs_file_inode_operations = { |
49 | .getattr = simple_getattr, | 49 | .getattr = simple_getattr, |
50 | }; | 50 | }; |
diff --git a/fs/ramfs/file-nommu.c b/fs/ramfs/file-nommu.c index d05e09ac9a99..d3fd7c6732d2 100644 --- a/fs/ramfs/file-nommu.c +++ b/fs/ramfs/file-nommu.c | |||
@@ -47,7 +47,7 @@ const struct file_operations ramfs_file_operations = { | |||
47 | .llseek = generic_file_llseek, | 47 | .llseek = generic_file_llseek, |
48 | }; | 48 | }; |
49 | 49 | ||
50 | struct inode_operations ramfs_file_inode_operations = { | 50 | const struct inode_operations ramfs_file_inode_operations = { |
51 | .setattr = ramfs_nommu_setattr, | 51 | .setattr = ramfs_nommu_setattr, |
52 | .getattr = simple_getattr, | 52 | .getattr = simple_getattr, |
53 | }; | 53 | }; |
diff --git a/fs/ramfs/inode.c b/fs/ramfs/inode.c index 2faf4cdf61b0..7a96b1d662a2 100644 --- a/fs/ramfs/inode.c +++ b/fs/ramfs/inode.c | |||
@@ -41,7 +41,7 @@ | |||
41 | #define RAMFS_MAGIC 0x858458f6 | 41 | #define RAMFS_MAGIC 0x858458f6 |
42 | 42 | ||
43 | static struct super_operations ramfs_ops; | 43 | static struct super_operations ramfs_ops; |
44 | static struct inode_operations ramfs_dir_inode_operations; | 44 | static const struct inode_operations ramfs_dir_inode_operations; |
45 | 45 | ||
46 | static struct backing_dev_info ramfs_backing_dev_info = { | 46 | static struct backing_dev_info ramfs_backing_dev_info = { |
47 | .ra_pages = 0, /* No readahead */ | 47 | .ra_pages = 0, /* No readahead */ |
@@ -143,7 +143,7 @@ static int ramfs_symlink(struct inode * dir, struct dentry *dentry, const char * | |||
143 | return error; | 143 | return error; |
144 | } | 144 | } |
145 | 145 | ||
146 | static struct inode_operations ramfs_dir_inode_operations = { | 146 | static const struct inode_operations ramfs_dir_inode_operations = { |
147 | .create = ramfs_create, | 147 | .create = ramfs_create, |
148 | .lookup = simple_lookup, | 148 | .lookup = simple_lookup, |
149 | .link = simple_link, | 149 | .link = simple_link, |
diff --git a/fs/ramfs/internal.h b/fs/ramfs/internal.h index c2bb58e74653..af7cc074a476 100644 --- a/fs/ramfs/internal.h +++ b/fs/ramfs/internal.h | |||
@@ -12,4 +12,4 @@ | |||
12 | 12 | ||
13 | extern const struct address_space_operations ramfs_aops; | 13 | extern const struct address_space_operations ramfs_aops; |
14 | extern const struct file_operations ramfs_file_operations; | 14 | extern const struct file_operations ramfs_file_operations; |
15 | extern struct inode_operations ramfs_file_inode_operations; | 15 | extern const struct inode_operations ramfs_file_inode_operations; |
diff --git a/fs/reiserfs/file.c b/fs/reiserfs/file.c index 5109f1d5e7ff..abfada2f52db 100644 --- a/fs/reiserfs/file.c +++ b/fs/reiserfs/file.c | |||
@@ -1556,7 +1556,7 @@ const struct file_operations reiserfs_file_operations = { | |||
1556 | .splice_write = generic_file_splice_write, | 1556 | .splice_write = generic_file_splice_write, |
1557 | }; | 1557 | }; |
1558 | 1558 | ||
1559 | struct inode_operations reiserfs_file_inode_operations = { | 1559 | const struct inode_operations reiserfs_file_inode_operations = { |
1560 | .truncate = reiserfs_vfs_truncate_file, | 1560 | .truncate = reiserfs_vfs_truncate_file, |
1561 | .setattr = reiserfs_setattr, | 1561 | .setattr = reiserfs_setattr, |
1562 | .setxattr = reiserfs_setxattr, | 1562 | .setxattr = reiserfs_setxattr, |
diff --git a/fs/reiserfs/namei.c b/fs/reiserfs/namei.c index 23f5cd5bbf56..a2161840bc7c 100644 --- a/fs/reiserfs/namei.c +++ b/fs/reiserfs/namei.c | |||
@@ -1525,7 +1525,7 @@ static int reiserfs_rename(struct inode *old_dir, struct dentry *old_dentry, | |||
1525 | /* | 1525 | /* |
1526 | * directories can handle most operations... | 1526 | * directories can handle most operations... |
1527 | */ | 1527 | */ |
1528 | struct inode_operations reiserfs_dir_inode_operations = { | 1528 | const struct inode_operations reiserfs_dir_inode_operations = { |
1529 | //&reiserfs_dir_operations, /* default_file_ops */ | 1529 | //&reiserfs_dir_operations, /* default_file_ops */ |
1530 | .create = reiserfs_create, | 1530 | .create = reiserfs_create, |
1531 | .lookup = reiserfs_lookup, | 1531 | .lookup = reiserfs_lookup, |
@@ -1548,7 +1548,7 @@ struct inode_operations reiserfs_dir_inode_operations = { | |||
1548 | * symlink operations.. same as page_symlink_inode_operations, with xattr | 1548 | * symlink operations.. same as page_symlink_inode_operations, with xattr |
1549 | * stuff added | 1549 | * stuff added |
1550 | */ | 1550 | */ |
1551 | struct inode_operations reiserfs_symlink_inode_operations = { | 1551 | const struct inode_operations reiserfs_symlink_inode_operations = { |
1552 | .readlink = generic_readlink, | 1552 | .readlink = generic_readlink, |
1553 | .follow_link = page_follow_link_light, | 1553 | .follow_link = page_follow_link_light, |
1554 | .put_link = page_put_link, | 1554 | .put_link = page_put_link, |
@@ -1564,7 +1564,7 @@ struct inode_operations reiserfs_symlink_inode_operations = { | |||
1564 | /* | 1564 | /* |
1565 | * special file operations.. just xattr/acl stuff | 1565 | * special file operations.. just xattr/acl stuff |
1566 | */ | 1566 | */ |
1567 | struct inode_operations reiserfs_special_inode_operations = { | 1567 | const struct inode_operations reiserfs_special_inode_operations = { |
1568 | .setattr = reiserfs_setattr, | 1568 | .setattr = reiserfs_setattr, |
1569 | .setxattr = reiserfs_setxattr, | 1569 | .setxattr = reiserfs_setxattr, |
1570 | .getxattr = reiserfs_getxattr, | 1570 | .getxattr = reiserfs_getxattr, |
diff --git a/fs/romfs/inode.c b/fs/romfs/inode.c index d3e243a6f609..1e712cc1693b 100644 --- a/fs/romfs/inode.c +++ b/fs/romfs/inode.c | |||
@@ -468,7 +468,7 @@ static const struct file_operations romfs_dir_operations = { | |||
468 | .readdir = romfs_readdir, | 468 | .readdir = romfs_readdir, |
469 | }; | 469 | }; |
470 | 470 | ||
471 | static struct inode_operations romfs_dir_inode_operations = { | 471 | static const struct inode_operations romfs_dir_inode_operations = { |
472 | .lookup = romfs_lookup, | 472 | .lookup = romfs_lookup, |
473 | }; | 473 | }; |
474 | 474 | ||
diff --git a/fs/smbfs/dir.c b/fs/smbfs/dir.c index b1e58d1ac9ca..50136b1a3eca 100644 --- a/fs/smbfs/dir.c +++ b/fs/smbfs/dir.c | |||
@@ -42,7 +42,7 @@ const struct file_operations smb_dir_operations = | |||
42 | .open = smb_dir_open, | 42 | .open = smb_dir_open, |
43 | }; | 43 | }; |
44 | 44 | ||
45 | struct inode_operations smb_dir_inode_operations = | 45 | const struct inode_operations smb_dir_inode_operations = |
46 | { | 46 | { |
47 | .create = smb_create, | 47 | .create = smb_create, |
48 | .lookup = smb_lookup, | 48 | .lookup = smb_lookup, |
@@ -54,7 +54,7 @@ struct inode_operations smb_dir_inode_operations = | |||
54 | .setattr = smb_notify_change, | 54 | .setattr = smb_notify_change, |
55 | }; | 55 | }; |
56 | 56 | ||
57 | struct inode_operations smb_dir_inode_operations_unix = | 57 | const struct inode_operations smb_dir_inode_operations_unix = |
58 | { | 58 | { |
59 | .create = smb_create, | 59 | .create = smb_create, |
60 | .lookup = smb_lookup, | 60 | .lookup = smb_lookup, |
diff --git a/fs/smbfs/file.c b/fs/smbfs/file.c index e50533a79517..f161797160c4 100644 --- a/fs/smbfs/file.c +++ b/fs/smbfs/file.c | |||
@@ -418,7 +418,7 @@ const struct file_operations smb_file_operations = | |||
418 | .sendfile = smb_file_sendfile, | 418 | .sendfile = smb_file_sendfile, |
419 | }; | 419 | }; |
420 | 420 | ||
421 | struct inode_operations smb_file_inode_operations = | 421 | const struct inode_operations smb_file_inode_operations = |
422 | { | 422 | { |
423 | .permission = smb_file_permission, | 423 | .permission = smb_file_permission, |
424 | .getattr = smb_getattr, | 424 | .getattr = smb_getattr, |
diff --git a/fs/smbfs/proto.h b/fs/smbfs/proto.h index 34fb462b2379..03f456c1b7d4 100644 --- a/fs/smbfs/proto.h +++ b/fs/smbfs/proto.h | |||
@@ -36,8 +36,8 @@ extern int smb_proc_link(struct smb_sb_info *server, struct dentry *dentry, stru | |||
36 | extern void smb_install_null_ops(struct smb_ops *ops); | 36 | extern void smb_install_null_ops(struct smb_ops *ops); |
37 | /* dir.c */ | 37 | /* dir.c */ |
38 | extern const struct file_operations smb_dir_operations; | 38 | extern const struct file_operations smb_dir_operations; |
39 | extern struct inode_operations smb_dir_inode_operations; | 39 | extern const struct inode_operations smb_dir_inode_operations; |
40 | extern struct inode_operations smb_dir_inode_operations_unix; | 40 | extern const struct inode_operations smb_dir_inode_operations_unix; |
41 | extern void smb_new_dentry(struct dentry *dentry); | 41 | extern void smb_new_dentry(struct dentry *dentry); |
42 | extern void smb_renew_times(struct dentry *dentry); | 42 | extern void smb_renew_times(struct dentry *dentry); |
43 | /* cache.c */ | 43 | /* cache.c */ |
@@ -65,7 +65,7 @@ extern int smb_notify_change(struct dentry *dentry, struct iattr *attr); | |||
65 | /* file.c */ | 65 | /* file.c */ |
66 | extern const struct address_space_operations smb_file_aops; | 66 | extern const struct address_space_operations smb_file_aops; |
67 | extern const struct file_operations smb_file_operations; | 67 | extern const struct file_operations smb_file_operations; |
68 | extern struct inode_operations smb_file_inode_operations; | 68 | extern const struct inode_operations smb_file_inode_operations; |
69 | /* ioctl.c */ | 69 | /* ioctl.c */ |
70 | extern int smb_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg); | 70 | extern int smb_ioctl(struct inode *inode, struct file *filp, unsigned int cmd, unsigned long arg); |
71 | /* smbiod.c */ | 71 | /* smbiod.c */ |
@@ -84,4 +84,4 @@ extern int smb_request_send_server(struct smb_sb_info *server); | |||
84 | extern int smb_request_recv(struct smb_sb_info *server); | 84 | extern int smb_request_recv(struct smb_sb_info *server); |
85 | /* symlink.c */ | 85 | /* symlink.c */ |
86 | extern int smb_symlink(struct inode *inode, struct dentry *dentry, const char *oldname); | 86 | extern int smb_symlink(struct inode *inode, struct dentry *dentry, const char *oldname); |
87 | extern struct inode_operations smb_link_inode_operations; | 87 | extern const struct inode_operations smb_link_inode_operations; |
diff --git a/fs/smbfs/symlink.c b/fs/smbfs/symlink.c index cdc53c4fb381..e4bf3456d07e 100644 --- a/fs/smbfs/symlink.c +++ b/fs/smbfs/symlink.c | |||
@@ -62,7 +62,7 @@ static void smb_put_link(struct dentry *dentry, struct nameidata *nd, void *p) | |||
62 | __putname(s); | 62 | __putname(s); |
63 | } | 63 | } |
64 | 64 | ||
65 | struct inode_operations smb_link_inode_operations = | 65 | const struct inode_operations smb_link_inode_operations = |
66 | { | 66 | { |
67 | .readlink = generic_readlink, | 67 | .readlink = generic_readlink, |
68 | .follow_link = smb_follow_link, | 68 | .follow_link = smb_follow_link, |
diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c index 9e95e7abaf69..8813990304fe 100644 --- a/fs/sysfs/dir.c +++ b/fs/sysfs/dir.c | |||
@@ -296,7 +296,7 @@ static struct dentry * sysfs_lookup(struct inode *dir, struct dentry *dentry, | |||
296 | return ERR_PTR(err); | 296 | return ERR_PTR(err); |
297 | } | 297 | } |
298 | 298 | ||
299 | struct inode_operations sysfs_dir_inode_operations = { | 299 | const struct inode_operations sysfs_dir_inode_operations = { |
300 | .lookup = sysfs_lookup, | 300 | .lookup = sysfs_lookup, |
301 | .setattr = sysfs_setattr, | 301 | .setattr = sysfs_setattr, |
302 | }; | 302 | }; |
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c index 542d2bcc73df..dd1344b007f5 100644 --- a/fs/sysfs/inode.c +++ b/fs/sysfs/inode.c | |||
@@ -29,7 +29,7 @@ static struct backing_dev_info sysfs_backing_dev_info = { | |||
29 | .capabilities = BDI_CAP_NO_ACCT_DIRTY | BDI_CAP_NO_WRITEBACK, | 29 | .capabilities = BDI_CAP_NO_ACCT_DIRTY | BDI_CAP_NO_WRITEBACK, |
30 | }; | 30 | }; |
31 | 31 | ||
32 | static struct inode_operations sysfs_inode_operations ={ | 32 | static const struct inode_operations sysfs_inode_operations ={ |
33 | .setattr = sysfs_setattr, | 33 | .setattr = sysfs_setattr, |
34 | }; | 34 | }; |
35 | 35 | ||
diff --git a/fs/sysfs/symlink.c b/fs/sysfs/symlink.c index 4869f611192f..7b9c5bfde920 100644 --- a/fs/sysfs/symlink.c +++ b/fs/sysfs/symlink.c | |||
@@ -181,7 +181,7 @@ static void sysfs_put_link(struct dentry *dentry, struct nameidata *nd, void *co | |||
181 | free_page((unsigned long)page); | 181 | free_page((unsigned long)page); |
182 | } | 182 | } |
183 | 183 | ||
184 | struct inode_operations sysfs_symlink_inode_operations = { | 184 | const struct inode_operations sysfs_symlink_inode_operations = { |
185 | .readlink = generic_readlink, | 185 | .readlink = generic_readlink, |
186 | .follow_link = sysfs_follow_link, | 186 | .follow_link = sysfs_follow_link, |
187 | .put_link = sysfs_put_link, | 187 | .put_link = sysfs_put_link, |
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h index fe1cbfd208ed..d976b0005549 100644 --- a/fs/sysfs/sysfs.h +++ b/fs/sysfs/sysfs.h | |||
@@ -26,8 +26,8 @@ extern struct super_block * sysfs_sb; | |||
26 | extern const struct file_operations sysfs_dir_operations; | 26 | extern const struct file_operations sysfs_dir_operations; |
27 | extern const struct file_operations sysfs_file_operations; | 27 | extern const struct file_operations sysfs_file_operations; |
28 | extern const struct file_operations bin_fops; | 28 | extern const struct file_operations bin_fops; |
29 | extern struct inode_operations sysfs_dir_inode_operations; | 29 | extern const struct inode_operations sysfs_dir_inode_operations; |
30 | extern struct inode_operations sysfs_symlink_inode_operations; | 30 | extern const struct inode_operations sysfs_symlink_inode_operations; |
31 | 31 | ||
32 | struct sysfs_symlink { | 32 | struct sysfs_symlink { |
33 | char * link_name; | 33 | char * link_name; |
diff --git a/fs/sysv/file.c b/fs/sysv/file.c index 47a4b728f15b..0732ddb9020b 100644 --- a/fs/sysv/file.c +++ b/fs/sysv/file.c | |||
@@ -30,7 +30,7 @@ const struct file_operations sysv_file_operations = { | |||
30 | .sendfile = generic_file_sendfile, | 30 | .sendfile = generic_file_sendfile, |
31 | }; | 31 | }; |
32 | 32 | ||
33 | struct inode_operations sysv_file_inode_operations = { | 33 | const struct inode_operations sysv_file_inode_operations = { |
34 | .truncate = sysv_truncate, | 34 | .truncate = sysv_truncate, |
35 | .getattr = sysv_getattr, | 35 | .getattr = sysv_getattr, |
36 | }; | 36 | }; |
diff --git a/fs/sysv/inode.c b/fs/sysv/inode.c index ead9864567e3..13dd75c4bc85 100644 --- a/fs/sysv/inode.c +++ b/fs/sysv/inode.c | |||
@@ -142,7 +142,7 @@ static inline void write3byte(struct sysv_sb_info *sbi, | |||
142 | } | 142 | } |
143 | } | 143 | } |
144 | 144 | ||
145 | static struct inode_operations sysv_symlink_inode_operations = { | 145 | static const struct inode_operations sysv_symlink_inode_operations = { |
146 | .readlink = generic_readlink, | 146 | .readlink = generic_readlink, |
147 | .follow_link = page_follow_link_light, | 147 | .follow_link = page_follow_link_light, |
148 | .put_link = page_put_link, | 148 | .put_link = page_put_link, |
diff --git a/fs/sysv/namei.c b/fs/sysv/namei.c index f7c08db8e34c..4e48abbd2b5d 100644 --- a/fs/sysv/namei.c +++ b/fs/sysv/namei.c | |||
@@ -292,7 +292,7 @@ out: | |||
292 | /* | 292 | /* |
293 | * directories can handle most operations... | 293 | * directories can handle most operations... |
294 | */ | 294 | */ |
295 | struct inode_operations sysv_dir_inode_operations = { | 295 | const struct inode_operations sysv_dir_inode_operations = { |
296 | .create = sysv_create, | 296 | .create = sysv_create, |
297 | .lookup = sysv_lookup, | 297 | .lookup = sysv_lookup, |
298 | .link = sysv_link, | 298 | .link = sysv_link, |
diff --git a/fs/sysv/symlink.c b/fs/sysv/symlink.c index b85ce61d635c..00d2f8a43e4e 100644 --- a/fs/sysv/symlink.c +++ b/fs/sysv/symlink.c | |||
@@ -14,7 +14,7 @@ static void *sysv_follow_link(struct dentry *dentry, struct nameidata *nd) | |||
14 | return NULL; | 14 | return NULL; |
15 | } | 15 | } |
16 | 16 | ||
17 | struct inode_operations sysv_fast_symlink_inode_operations = { | 17 | const struct inode_operations sysv_fast_symlink_inode_operations = { |
18 | .readlink = generic_readlink, | 18 | .readlink = generic_readlink, |
19 | .follow_link = sysv_follow_link, | 19 | .follow_link = sysv_follow_link, |
20 | }; | 20 | }; |
diff --git a/fs/sysv/sysv.h b/fs/sysv/sysv.h index dcb18b2171fe..a320edcf541e 100644 --- a/fs/sysv/sysv.h +++ b/fs/sysv/sysv.h | |||
@@ -159,9 +159,9 @@ extern struct sysv_dir_entry *sysv_dotdot(struct inode *, struct page **); | |||
159 | extern ino_t sysv_inode_by_name(struct dentry *); | 159 | extern ino_t sysv_inode_by_name(struct dentry *); |
160 | 160 | ||
161 | 161 | ||
162 | extern struct inode_operations sysv_file_inode_operations; | 162 | extern const struct inode_operations sysv_file_inode_operations; |
163 | extern struct inode_operations sysv_dir_inode_operations; | 163 | extern const struct inode_operations sysv_dir_inode_operations; |
164 | extern struct inode_operations sysv_fast_symlink_inode_operations; | 164 | extern const struct inode_operations sysv_fast_symlink_inode_operations; |
165 | extern const struct file_operations sysv_file_operations; | 165 | extern const struct file_operations sysv_file_operations; |
166 | extern const struct file_operations sysv_dir_operations; | 166 | extern const struct file_operations sysv_dir_operations; |
167 | extern const struct address_space_operations sysv_aops; | 167 | extern const struct address_space_operations sysv_aops; |
diff --git a/fs/udf/file.c b/fs/udf/file.c index d81f2db7b0e3..40d5047defea 100644 --- a/fs/udf/file.c +++ b/fs/udf/file.c | |||
@@ -263,6 +263,6 @@ const struct file_operations udf_file_operations = { | |||
263 | .sendfile = generic_file_sendfile, | 263 | .sendfile = generic_file_sendfile, |
264 | }; | 264 | }; |
265 | 265 | ||
266 | struct inode_operations udf_file_inode_operations = { | 266 | const struct inode_operations udf_file_inode_operations = { |
267 | .truncate = udf_truncate, | 267 | .truncate = udf_truncate, |
268 | }; | 268 | }; |
diff --git a/fs/udf/namei.c b/fs/udf/namei.c index 73163325e5ec..fe361cd19a98 100644 --- a/fs/udf/namei.c +++ b/fs/udf/namei.c | |||
@@ -1308,7 +1308,7 @@ end_rename: | |||
1308 | return retval; | 1308 | return retval; |
1309 | } | 1309 | } |
1310 | 1310 | ||
1311 | struct inode_operations udf_dir_inode_operations = { | 1311 | const struct inode_operations udf_dir_inode_operations = { |
1312 | .lookup = udf_lookup, | 1312 | .lookup = udf_lookup, |
1313 | .create = udf_create, | 1313 | .create = udf_create, |
1314 | .link = udf_link, | 1314 | .link = udf_link, |
diff --git a/fs/udf/udfdecl.h b/fs/udf/udfdecl.h index 1033b7cf2939..ee1dece1f6f5 100644 --- a/fs/udf/udfdecl.h +++ b/fs/udf/udfdecl.h | |||
@@ -42,9 +42,9 @@ struct task_struct; | |||
42 | struct buffer_head; | 42 | struct buffer_head; |
43 | struct super_block; | 43 | struct super_block; |
44 | 44 | ||
45 | extern struct inode_operations udf_dir_inode_operations; | 45 | extern const struct inode_operations udf_dir_inode_operations; |
46 | extern const struct file_operations udf_dir_operations; | 46 | extern const struct file_operations udf_dir_operations; |
47 | extern struct inode_operations udf_file_inode_operations; | 47 | extern const struct inode_operations udf_file_inode_operations; |
48 | extern const struct file_operations udf_file_operations; | 48 | extern const struct file_operations udf_file_operations; |
49 | extern const struct address_space_operations udf_aops; | 49 | extern const struct address_space_operations udf_aops; |
50 | extern const struct address_space_operations udf_adinicb_aops; | 50 | extern const struct address_space_operations udf_adinicb_aops; |
diff --git a/fs/ufs/namei.c b/fs/ufs/namei.c index e84c0ecf0730..a059ccd064ea 100644 --- a/fs/ufs/namei.c +++ b/fs/ufs/namei.c | |||
@@ -355,7 +355,7 @@ out: | |||
355 | return err; | 355 | return err; |
356 | } | 356 | } |
357 | 357 | ||
358 | struct inode_operations ufs_dir_inode_operations = { | 358 | const struct inode_operations ufs_dir_inode_operations = { |
359 | .create = ufs_create, | 359 | .create = ufs_create, |
360 | .lookup = ufs_lookup, | 360 | .lookup = ufs_lookup, |
361 | .link = ufs_link, | 361 | .link = ufs_link, |
diff --git a/fs/ufs/symlink.c b/fs/ufs/symlink.c index 337512ed5781..d8549f807e80 100644 --- a/fs/ufs/symlink.c +++ b/fs/ufs/symlink.c | |||
@@ -36,7 +36,7 @@ static void *ufs_follow_link(struct dentry *dentry, struct nameidata *nd) | |||
36 | return NULL; | 36 | return NULL; |
37 | } | 37 | } |
38 | 38 | ||
39 | struct inode_operations ufs_fast_symlink_inode_operations = { | 39 | const struct inode_operations ufs_fast_symlink_inode_operations = { |
40 | .readlink = generic_readlink, | 40 | .readlink = generic_readlink, |
41 | .follow_link = ufs_follow_link, | 41 | .follow_link = ufs_follow_link, |
42 | }; | 42 | }; |
diff --git a/fs/ufs/truncate.c b/fs/ufs/truncate.c index 77ed77932aeb..749581fa7729 100644 --- a/fs/ufs/truncate.c +++ b/fs/ufs/truncate.c | |||
@@ -513,6 +513,6 @@ static int ufs_setattr(struct dentry *dentry, struct iattr *attr) | |||
513 | return inode_setattr(inode, attr); | 513 | return inode_setattr(inode, attr); |
514 | } | 514 | } |
515 | 515 | ||
516 | struct inode_operations ufs_file_inode_operations = { | 516 | const struct inode_operations ufs_file_inode_operations = { |
517 | .setattr = ufs_setattr, | 517 | .setattr = ufs_setattr, |
518 | }; | 518 | }; |
diff --git a/fs/vfat/namei.c b/fs/vfat/namei.c index 0afd745a37cd..c28add2fbe95 100644 --- a/fs/vfat/namei.c +++ b/fs/vfat/namei.c | |||
@@ -996,7 +996,7 @@ error_inode: | |||
996 | goto out; | 996 | goto out; |
997 | } | 997 | } |
998 | 998 | ||
999 | static struct inode_operations vfat_dir_inode_operations = { | 999 | static const struct inode_operations vfat_dir_inode_operations = { |
1000 | .create = vfat_create, | 1000 | .create = vfat_create, |
1001 | .lookup = vfat_lookup, | 1001 | .lookup = vfat_lookup, |
1002 | .unlink = vfat_unlink, | 1002 | .unlink = vfat_unlink, |
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c index aa4c3b8cae01..0b5fa124bef2 100644 --- a/fs/xfs/linux-2.6/xfs_iops.c +++ b/fs/xfs/linux-2.6/xfs_iops.c | |||
@@ -813,7 +813,7 @@ xfs_vn_removexattr( | |||
813 | } | 813 | } |
814 | 814 | ||
815 | 815 | ||
816 | struct inode_operations xfs_inode_operations = { | 816 | const struct inode_operations xfs_inode_operations = { |
817 | .permission = xfs_vn_permission, | 817 | .permission = xfs_vn_permission, |
818 | .truncate = xfs_vn_truncate, | 818 | .truncate = xfs_vn_truncate, |
819 | .getattr = xfs_vn_getattr, | 819 | .getattr = xfs_vn_getattr, |
@@ -824,7 +824,7 @@ struct inode_operations xfs_inode_operations = { | |||
824 | .removexattr = xfs_vn_removexattr, | 824 | .removexattr = xfs_vn_removexattr, |
825 | }; | 825 | }; |
826 | 826 | ||
827 | struct inode_operations xfs_dir_inode_operations = { | 827 | const struct inode_operations xfs_dir_inode_operations = { |
828 | .create = xfs_vn_create, | 828 | .create = xfs_vn_create, |
829 | .lookup = xfs_vn_lookup, | 829 | .lookup = xfs_vn_lookup, |
830 | .link = xfs_vn_link, | 830 | .link = xfs_vn_link, |
@@ -843,7 +843,7 @@ struct inode_operations xfs_dir_inode_operations = { | |||
843 | .removexattr = xfs_vn_removexattr, | 843 | .removexattr = xfs_vn_removexattr, |
844 | }; | 844 | }; |
845 | 845 | ||
846 | struct inode_operations xfs_symlink_inode_operations = { | 846 | const struct inode_operations xfs_symlink_inode_operations = { |
847 | .readlink = generic_readlink, | 847 | .readlink = generic_readlink, |
848 | .follow_link = xfs_vn_follow_link, | 848 | .follow_link = xfs_vn_follow_link, |
849 | .put_link = xfs_vn_put_link, | 849 | .put_link = xfs_vn_put_link, |
diff --git a/fs/xfs/linux-2.6/xfs_iops.h b/fs/xfs/linux-2.6/xfs_iops.h index ad6173da5678..95a69398fce0 100644 --- a/fs/xfs/linux-2.6/xfs_iops.h +++ b/fs/xfs/linux-2.6/xfs_iops.h | |||
@@ -18,9 +18,9 @@ | |||
18 | #ifndef __XFS_IOPS_H__ | 18 | #ifndef __XFS_IOPS_H__ |
19 | #define __XFS_IOPS_H__ | 19 | #define __XFS_IOPS_H__ |
20 | 20 | ||
21 | extern struct inode_operations xfs_inode_operations; | 21 | extern const struct inode_operations xfs_inode_operations; |
22 | extern struct inode_operations xfs_dir_inode_operations; | 22 | extern const struct inode_operations xfs_dir_inode_operations; |
23 | extern struct inode_operations xfs_symlink_inode_operations; | 23 | extern const struct inode_operations xfs_symlink_inode_operations; |
24 | 24 | ||
25 | extern const struct file_operations xfs_file_operations; | 25 | extern const struct file_operations xfs_file_operations; |
26 | extern const struct file_operations xfs_dir_file_operations; | 26 | extern const struct file_operations xfs_dir_file_operations; |