aboutsummaryrefslogtreecommitdiffstats
path: root/fs/hfsplus
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2015-12-02 08:44:35 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2015-12-06 21:25:17 -0500
commit97d79299223baab330b194437e676d301f12d5f6 (patch)
tree7845b5fe37465c52d3a8584b4f00945617333a0d /fs/hfsplus
parent44cb0d3f778da6646f8e993245ee827a6b7df6d5 (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/hfsplus')
-rw-r--r--fs/hfsplus/posix_acl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/hfsplus/posix_acl.c b/fs/hfsplus/posix_acl.c
index df0c9af68d05..afb33eda6d7d 100644
--- a/fs/hfsplus/posix_acl.c
+++ b/fs/hfsplus/posix_acl.c
@@ -21,10 +21,10 @@ struct posix_acl *hfsplus_get_posix_acl(struct inode *inode, int type)
21 21
22 switch (type) { 22 switch (type) {
23 case ACL_TYPE_ACCESS: 23 case ACL_TYPE_ACCESS:
24 xattr_name = POSIX_ACL_XATTR_ACCESS; 24 xattr_name = XATTR_NAME_POSIX_ACL_ACCESS;
25 break; 25 break;
26 case ACL_TYPE_DEFAULT: 26 case ACL_TYPE_DEFAULT:
27 xattr_name = POSIX_ACL_XATTR_DEFAULT; 27 xattr_name = XATTR_NAME_POSIX_ACL_DEFAULT;
28 break; 28 break;
29 default: 29 default:
30 return ERR_PTR(-EINVAL); 30 return ERR_PTR(-EINVAL);
@@ -66,7 +66,7 @@ int hfsplus_set_posix_acl(struct inode *inode, struct posix_acl *acl,
66 66
67 switch (type) { 67 switch (type) {
68 case ACL_TYPE_ACCESS: 68 case ACL_TYPE_ACCESS:
69 xattr_name = POSIX_ACL_XATTR_ACCESS; 69 xattr_name = XATTR_NAME_POSIX_ACL_ACCESS;
70 if (acl) { 70 if (acl) {
71 err = posix_acl_equiv_mode(acl, &inode->i_mode); 71 err = posix_acl_equiv_mode(acl, &inode->i_mode);
72 if (err < 0) 72 if (err < 0)
@@ -76,7 +76,7 @@ int hfsplus_set_posix_acl(struct inode *inode, struct posix_acl *acl,
76 break; 76 break;
77 77
78 case ACL_TYPE_DEFAULT: 78 case ACL_TYPE_DEFAULT:
79 xattr_name = POSIX_ACL_XATTR_DEFAULT; 79 xattr_name = XATTR_NAME_POSIX_ACL_DEFAULT;
80 if (!S_ISDIR(inode->i_mode)) 80 if (!S_ISDIR(inode->i_mode))
81 return acl ? -EACCES : 0; 81 return acl ? -EACCES : 0;
82 break; 82 break;