diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2017-08-02 10:35:14 +0200 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2017-09-14 20:58:29 +0200 |
commit | 121744440582004a1751c688a2622e5dfeaae09d (patch) | |
tree | 4434338cd4638136a00332506e0d01de434c7204 /fs/orangefs/xattr.c | |
parent | orangefs: don't call filemap_write_and_wait from fsync (diff) | |
download | linux-121744440582004a1751c688a2622e5dfeaae09d.tar.xz linux-121744440582004a1751c688a2622e5dfeaae09d.zip |
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: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs/xattr.c')
-rw-r--r-- | fs/orangefs/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/orangefs/xattr.c b/fs/orangefs/xattr.c index a34b25be39c5..fed0e9aae23b 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, |