提交 12174444 编写于 作者: J Julia Lawall 提交者: Mike Marshall

orangefs: constify xattr_handler structure

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: NJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: NMike Marshall <hubcap@omnibond.com>
上级 49e55713
...@@ -442,7 +442,7 @@ static int orangefs_xattr_get_default(const struct xattr_handler *handler, ...@@ -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 */ .prefix = "", /* match any name => handlers called with full name */
.get = orangefs_xattr_get_default, .get = orangefs_xattr_get_default,
.set = orangefs_xattr_set_default, .set = orangefs_xattr_set_default,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册