Skip to content

Commit

Permalink
orangefs: constify xattr_handler structure
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
  • Loading branch information
Julia Lawall authored and Mike Marshall committed Sep 14, 2017
1 parent 49e5571 commit 1217444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/orangefs/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1217444

Please sign in to comment.