aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/acl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/acl.c b/fs/btrfs/acl.c
index 6b4d0cca5c7f..a372985b3a9a 100644
--- a/fs/btrfs/acl.c
+++ b/fs/btrfs/acl.c
@@ -163,6 +163,9 @@ static int btrfs_xattr_acl_set(struct dentry *dentry, const char *name,
163 if (!is_owner_or_cap(dentry->d_inode)) 163 if (!is_owner_or_cap(dentry->d_inode))
164 return -EPERM; 164 return -EPERM;
165 165
166 if (!IS_POSIXACL(dentry->d_inode))
167 return -EOPNOTSUPP;
168
166 if (value) { 169 if (value) {
167 acl = posix_acl_from_xattr(value, size); 170 acl = posix_acl_from_xattr(value, size);
168 if (acl == NULL) { 171 if (acl == NULL) {