summaryrefslogtreecommitdiff
path: root/fs/btrfs/acl.c
diff options
context:
space:
mode:
authorAlex Shi <alex.shi@linaro.org>2016-11-01 12:01:20 +0800
committerAlex Shi <alex.shi@linaro.org>2016-11-01 12:01:20 +0800
commit79df8fa79b6a2aced892ad2b2c9832e7d9bdea6b (patch)
tree725b3b29e466e846837cf56cec1bafd99fe5ca71 /fs/btrfs/acl.c
parentc11a255c622e7a2d312f4080c6ef529dd67b3c38 (diff)
parent1714a3e139090705a0bd862a8b7bba930181cfbd (diff)
Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android
Diffstat (limited to 'fs/btrfs/acl.c')
-rw-r--r--fs/btrfs/acl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/btrfs/acl.c b/fs/btrfs/acl.c
index 9a0124a95851..fb3e64d37cb4 100644
--- a/fs/btrfs/acl.c
+++ b/fs/btrfs/acl.c
@@ -83,11 +83,9 @@ static int __btrfs_set_acl(struct btrfs_trans_handle *trans,
case ACL_TYPE_ACCESS:
name = POSIX_ACL_XATTR_ACCESS;
if (acl) {
- ret = posix_acl_equiv_mode(acl, &inode->i_mode);
- if (ret < 0)
+ ret = posix_acl_update_mode(inode, &inode->i_mode, &acl);
+ if (ret)
return ret;
- if (ret == 0)
- acl = NULL;
}
ret = 0;
break;