Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1701935 > unrolled thread

[PATCH] orangefs: constify xattr_handler structure

Started byJulia Lawall <Julia.Lawall@lip6.fr>
First post2017-08-02 11:10 +0200
Last post2017-08-02 11:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] orangefs: constify xattr_handler structure Julia Lawall <Julia.Lawall@lip6.fr> - 2017-08-02 11:10 +0200

#1701935 — [PATCH] orangefs: constify xattr_handler structure

FromJulia Lawall <Julia.Lawall@lip6.fr>
Date2017-08-02 11:10 +0200
Subject[PATCH] orangefs: constify xattr_handler structure
Message-ID<u9XPc-7SS-7@gated-at.bofh.it>
The xattr_handler structure is only stored in an array of const
structures.  Thus the xattr_handler structure itself can be
const.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 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,

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web