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>
This commit is contained in:

committed by
Al Viro

parent
44cb0d3f77
commit
97d7929922
@@ -284,12 +284,12 @@ nfs3_listxattr(struct dentry *dentry, char *data, size_t size)
|
||||
int error;
|
||||
|
||||
error = nfs3_list_one_acl(inode, ACL_TYPE_ACCESS,
|
||||
POSIX_ACL_XATTR_ACCESS, data, size, &result);
|
||||
XATTR_NAME_POSIX_ACL_ACCESS, data, size, &result);
|
||||
if (error)
|
||||
return error;
|
||||
|
||||
error = nfs3_list_one_acl(inode, ACL_TYPE_DEFAULT,
|
||||
POSIX_ACL_XATTR_DEFAULT, data, size, &result);
|
||||
XATTR_NAME_POSIX_ACL_DEFAULT, data, size, &result);
|
||||
if (error)
|
||||
return error;
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user