All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@vyatta.com>
To: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: linux-fsdevel@vger.kernel.org
Subject: [PATCH 10/10] gfs: constify xattr_handler
Date: Thu, 13 May 2010 17:53:23 -0700	[thread overview]
Message-ID: <20100514005409.317608010@vyatta.com> (raw)
In-Reply-To: 20100514005313.884038885@vyatta.com

[-- Attachment #1: gfs-xattr.patch --]
[-- Type: text/plain, Size: 2421 bytes --]

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
---
 fs/gfs2/acl.c   |    2 +-
 fs/gfs2/acl.h   |    2 +-
 fs/gfs2/super.h |    2 +-
 fs/gfs2/xattr.c |    6 +++---
 4 files changed, 6 insertions(+), 6 deletions(-)

--- a/fs/gfs2/acl.c	2010-05-13 17:44:58.968080096 -0700
+++ b/fs/gfs2/acl.c	2010-05-13 17:45:32.727563724 -0700
@@ -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,
--- a/fs/gfs2/acl.h	2010-05-13 17:44:58.978080437 -0700
+++ b/fs/gfs2/acl.h	2010-05-13 17:46:07.889555241 -0700
@@ -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__ */
--- a/fs/gfs2/super.h	2010-05-13 17:44:58.988080091 -0700
+++ b/fs/gfs2/super.h	2010-05-13 17:46:06.026536827 -0700
@@ -54,7 +54,7 @@ extern struct file_system_type gfs2meta_
 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__ */
 
--- a/fs/gfs2/xattr.c	2010-05-13 17:44:58.998080311 -0700
+++ b/fs/gfs2/xattr.c	2010-05-13 17:46:08.401554064 -0700
@@ -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,



      parent reply	other threads:[~2010-05-14  1:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-14  0:53 [PATCH 00/10] Make xattr_handler constant patches Stephen Hemminger
2010-05-14  0:53 ` [PATCH 01/10] fs: xattr_handler table should be const Stephen Hemminger
2010-05-14  0:53 ` [PATCH 02/10] btrfs: constify xattr_handler Stephen Hemminger
2010-05-14  0:53 ` [PATCH 03/10] ext2: " Stephen Hemminger
2010-05-14  0:53 ` [PATCH 04/10] Subject ext3: constify xattr handlers Stephen Hemminger
2010-05-14  0:53 ` [PATCH 05/10] ext4: constify xattr_handler Stephen Hemminger
2010-05-14  0:53 ` [PATCH 06/10] reiserfs: " Stephen Hemminger
2010-05-14  0:53 ` [PATCH 07/10] xfs: " Stephen Hemminger
2010-05-14  0:53 ` [PATCH 08/10] jffs2: " Stephen Hemminger
2010-05-14  0:53 ` [PATCH 09/10] ocfs: " Stephen Hemminger
2010-05-14  0:53 ` Stephen Hemminger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100514005409.317608010@vyatta.com \
    --to=shemminger@vyatta.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.