diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2010-05-13 20:53:14 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2010-05-21 18:31:18 -0400 |
commit | bb4354538eb7b92f32cfedbad68c7be266c0b467 (patch) | |
tree | 5ecc43dabf5a0ecb511c74411272eba70415cdaf /include | |
parent | 18e9e5104fcd9a973ffe3eed3816c87f2a1b6cd2 (diff) |
fs: xattr_handler table should be const
The entries in xattr handler table should be immutable (ie const)
like other operation tables.
Later patches convert common filesystems. Uncoverted filesystems
will still work, but will generate a compiler warning.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 2 | ||||
-rw-r--r-- | include/linux/generic_acl.h | 4 | ||||
-rw-r--r-- | include/linux/xattr.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index d51256bc6328..6660db898c41 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1336,7 +1336,7 @@ struct super_block { | |||
1336 | #ifdef CONFIG_SECURITY | 1336 | #ifdef CONFIG_SECURITY |
1337 | void *s_security; | 1337 | void *s_security; |
1338 | #endif | 1338 | #endif |
1339 | struct xattr_handler **s_xattr; | 1339 | const struct xattr_handler **s_xattr; |
1340 | 1340 | ||
1341 | struct list_head s_inodes; /* all inodes */ | 1341 | struct list_head s_inodes; /* all inodes */ |
1342 | struct hlist_head s_anon; /* anonymous dentries for (nfs) exporting */ | 1342 | struct hlist_head s_anon; /* anonymous dentries for (nfs) exporting */ |
diff --git a/include/linux/generic_acl.h b/include/linux/generic_acl.h index ca666d18ed67..574bea4013b6 100644 --- a/include/linux/generic_acl.h +++ b/include/linux/generic_acl.h | |||
@@ -5,8 +5,8 @@ | |||
5 | 5 | ||
6 | struct inode; | 6 | struct inode; |
7 | 7 | ||
8 | extern struct xattr_handler generic_acl_access_handler; | 8 | extern const struct xattr_handler generic_acl_access_handler; |
9 | extern struct xattr_handler generic_acl_default_handler; | 9 | extern const struct xattr_handler generic_acl_default_handler; |
10 | 10 | ||
11 | int generic_acl_init(struct inode *, struct inode *); | 11 | int generic_acl_init(struct inode *, struct inode *); |
12 | int generic_acl_chmod(struct inode *); | 12 | int generic_acl_chmod(struct inode *); |
diff --git a/include/linux/xattr.h b/include/linux/xattr.h index fb9b7e6e1e2d..0cfa1e9c4cc1 100644 --- a/include/linux/xattr.h +++ b/include/linux/xattr.h | |||
@@ -37,7 +37,7 @@ struct inode; | |||
37 | struct dentry; | 37 | struct dentry; |
38 | 38 | ||
39 | struct xattr_handler { | 39 | struct xattr_handler { |
40 | char *prefix; | 40 | const char *prefix; |
41 | int flags; /* fs private flags passed back to the handlers */ | 41 | int flags; /* fs private flags passed back to the handlers */ |
42 | size_t (*list)(struct dentry *dentry, char *list, size_t list_size, | 42 | size_t (*list)(struct dentry *dentry, char *list, size_t list_size, |
43 | const char *name, size_t name_len, int handler_flags); | 43 | const char *name, size_t name_len, int handler_flags); |