aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorJosef 'Jeff' Sipek <jsipek@cs.sunysb.edu>2007-02-12 03:55:41 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-12 12:48:47 -0500
commitee9b6d61a2a43c5952eb43283f8db284a4e70b8a (patch)
treeafb0340e79d3e9d14f39df20e165ce2efe941b18 /include/linux/fs.h
parentc5ef1c42c51b1b5b4a401a6517bdda30933ddbaf (diff)
[PATCH] Mark struct super_operations const
This patch is inspired by Arjan's "Patch series to mark struct file_operations and struct inode_operations const". Compile tested with gcc & sparse. Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r--include/linux/fs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index bab891bb2270..86ec3f4a7da6 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -907,7 +907,7 @@ struct super_block {
907 unsigned char s_dirt; 907 unsigned char s_dirt;
908 unsigned long long s_maxbytes; /* Max file size */ 908 unsigned long long s_maxbytes; /* Max file size */
909 struct file_system_type *s_type; 909 struct file_system_type *s_type;
910 struct super_operations *s_op; 910 const struct super_operations *s_op;
911 struct dquot_operations *dq_op; 911 struct dquot_operations *dq_op;
912 struct quotactl_ops *s_qcop; 912 struct quotactl_ops *s_qcop;
913 struct export_operations *s_export_op; 913 struct export_operations *s_export_op;
@@ -1383,7 +1383,7 @@ struct super_block *sget(struct file_system_type *type,
1383 int (*set)(struct super_block *,void *), 1383 int (*set)(struct super_block *,void *),
1384 void *data); 1384 void *data);
1385extern int get_sb_pseudo(struct file_system_type *, char *, 1385extern int get_sb_pseudo(struct file_system_type *, char *,
1386 struct super_operations *ops, unsigned long, 1386 const struct super_operations *ops, unsigned long,
1387 struct vfsmount *mnt); 1387 struct vfsmount *mnt);
1388extern int simple_set_mnt(struct vfsmount *mnt, struct super_block *sb); 1388extern int simple_set_mnt(struct vfsmount *mnt, struct super_block *sb);
1389int __put_super(struct super_block *sb); 1389int __put_super(struct super_block *sb);