diff options
author | Andreas Gruenbacher <agruenba@redhat.com> | 2015-12-02 08:44:35 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-12-06 21:25:17 -0500 |
commit | 97d79299223baab330b194437e676d301f12d5f6 (patch) | |
tree | 7845b5fe37465c52d3a8584b4f00945617333a0d /fs/xfs | |
parent | 44cb0d3f778da6646f8e993245ee827a6b7df6d5 (diff) |
posix acls: Remove duplicate xattr name definitions
Remove POSIX_ACL_XATTR_{ACCESS,DEFAULT} and GFS2_POSIX_ACL_{ACCESS,DEFAULT}
and replace them with the definitions in <include/uapi/linux/xattr.h>.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_xattr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_xattr.c b/fs/xfs/xfs_xattr.c index 839b35ca21c6..7288795718c9 100644 --- a/fs/xfs/xfs_xattr.c +++ b/fs/xfs/xfs_xattr.c | |||
@@ -253,16 +253,16 @@ xfs_vn_listxattr(struct dentry *dentry, char *data, size_t size) | |||
253 | * Then add the two synthetic ACL attributes. | 253 | * Then add the two synthetic ACL attributes. |
254 | */ | 254 | */ |
255 | if (posix_acl_access_exists(inode)) { | 255 | if (posix_acl_access_exists(inode)) { |
256 | error = list_one_attr(POSIX_ACL_XATTR_ACCESS, | 256 | error = list_one_attr(XATTR_NAME_POSIX_ACL_ACCESS, |
257 | strlen(POSIX_ACL_XATTR_ACCESS) + 1, | 257 | strlen(XATTR_NAME_POSIX_ACL_ACCESS) + 1, |
258 | data, size, &context.count); | 258 | data, size, &context.count); |
259 | if (error) | 259 | if (error) |
260 | return error; | 260 | return error; |
261 | } | 261 | } |
262 | 262 | ||
263 | if (posix_acl_default_exists(inode)) { | 263 | if (posix_acl_default_exists(inode)) { |
264 | error = list_one_attr(POSIX_ACL_XATTR_DEFAULT, | 264 | error = list_one_attr(XATTR_NAME_POSIX_ACL_DEFAULT, |
265 | strlen(POSIX_ACL_XATTR_DEFAULT) + 1, | 265 | strlen(XATTR_NAME_POSIX_ACL_DEFAULT) + 1, |
266 | data, size, &context.count); | 266 | data, size, &context.count); |
267 | if (error) | 267 | if (error) |
268 | return error; | 268 | return error; |