gfs: constify xattr_handler
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 14 May 2010 00:53:23 +0000 (17:53 -0700)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 21 May 2010 22:31:20 +0000 (18:31 -0400)
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/gfs2/acl.c
fs/gfs2/acl.h
fs/gfs2/super.h
fs/gfs2/xattr.c

index 87ee309d4c24d10e6dcac60f7d8bca17558553b2..9fb76b0a048507c2450e0b8468bd34baf54c6db4 100644 (file)
@@ -335,7 +335,7 @@ out:
        return error;
 }
 
-struct xattr_handler gfs2_xattr_system_handler = {
+const struct xattr_handler gfs2_xattr_system_handler = {
        .prefix = XATTR_SYSTEM_PREFIX,
        .flags  = GFS2_EATYPE_SYS,
        .get    = gfs2_xattr_system_get,
index 9306a2e6620c7111b55ed5ee5f9bf9a5c13cca2e..b522b0cb39eaa12798649c2a8bd2b1e952a746f9 100644 (file)
@@ -19,6 +19,6 @@
 extern int gfs2_check_acl(struct inode *inode, int mask);
 extern int gfs2_acl_create(struct gfs2_inode *dip, struct inode *inode);
 extern int gfs2_acl_chmod(struct gfs2_inode *ip, struct iattr *attr);
-extern struct xattr_handler gfs2_xattr_system_handler;
+extern const struct xattr_handler gfs2_xattr_system_handler;
 
 #endif /* __ACL_DOT_H__ */
index 3df60f2d84e36b31058102ba836af87d2463f1d9..a0464680af0b8cec6b7fdf2c69099ba740933dce 100644 (file)
@@ -54,7 +54,7 @@ extern struct file_system_type gfs2meta_fs_type;
 extern const struct export_operations gfs2_export_ops;
 extern const struct super_operations gfs2_super_ops;
 extern const struct dentry_operations gfs2_dops;
-extern struct xattr_handler *gfs2_xattr_handlers[];
+extern const struct xattr_handler *gfs2_xattr_handlers[];
 
 #endif /* __SUPER_DOT_H__ */
 
index c2ebdf2c01d4fb2d4018e76fe8506d8ce04bd155..82f93da00d1b4e2373bea8b36f691dc39ae0a8d2 100644 (file)
@@ -1535,21 +1535,21 @@ out_alloc:
        return error;
 }
 
-static struct xattr_handler gfs2_xattr_user_handler = {
+static const struct xattr_handler gfs2_xattr_user_handler = {
        .prefix = XATTR_USER_PREFIX,
        .flags  = GFS2_EATYPE_USR,
        .get    = gfs2_xattr_get,
        .set    = gfs2_xattr_set,
 };
 
-static struct xattr_handler gfs2_xattr_security_handler = {
+static const struct xattr_handler gfs2_xattr_security_handler = {
        .prefix = XATTR_SECURITY_PREFIX,
        .flags  = GFS2_EATYPE_SECURITY,
        .get    = gfs2_xattr_get,
        .set    = gfs2_xattr_set,
 };
 
-struct xattr_handler *gfs2_xattr_handlers[] = {
+const struct xattr_handler *gfs2_xattr_handlers[] = {
        &gfs2_xattr_user_handler,
        &gfs2_xattr_security_handler,
        &gfs2_xattr_system_handler,