[<prev] [next>] [day] [month] [year] [list]
Message-Id: <e02c48666afb68d271f7811c1a040bf3e58d3221.1504172706.git.arvind.yadav.cs@gmail.com>
Date: Thu, 31 Aug 2017 15:20:34 +0530
From: Arvind Yadav <arvind.yadav.cs@...il.com>
To: hubcap@...ibond.com
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] orangefs: constify xattr_handler
xattr_handler are not supposed to change at runtime.
"struct super_block" working with xattr_handler provided
by <linux/fs.h> work with const xattr_handler. So mark
the non-const structs as const
Signed-off-by: Arvind Yadav <arvind.yadav.cs@...il.com>
---
fs/orangefs/xattr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/orangefs/xattr.c b/fs/orangefs/xattr.c
index 237c9c0..5f86bf9 100644
--- a/fs/orangefs/xattr.c
+++ b/fs/orangefs/xattr.c
@@ -442,7 +442,7 @@ static int orangefs_xattr_get_default(const struct xattr_handler *handler,
}
-static struct xattr_handler orangefs_xattr_default_handler = {
+static const struct xattr_handler orangefs_xattr_default_handler = {
.prefix = "", /* match any name => handlers called with full name */
.get = orangefs_xattr_get_default,
.set = orangefs_xattr_set_default,
--
1.9.1
Powered by blists - more mailing lists