Skip to content

Commit

Permalink
btrfs: remove useless ACL check
Browse files Browse the repository at this point in the history
posix_acl_xattr_set() already does the check, and it's the only
way to feed in an ACL from userspace.
So the check here is useless, remove it.

Signed-off-by: zhang zhen <zhenzhang.zhang@huawei.com>
Signed-off-by: Chris Mason <clm@fb.com>
  • Loading branch information
ZhangZhen authored and Chris Mason committed Jun 10, 2014
1 parent 4d90d28 commit 776e4aa
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions fs/btrfs/acl.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,6 @@ static int __btrfs_set_acl(struct btrfs_trans_handle *trans,
const char *name;
char *value = NULL;

if (acl) {
ret = posix_acl_valid(acl);
if (ret < 0)
return ret;
ret = 0;
}

switch (type) {
case ACL_TYPE_ACCESS:
name = POSIX_ACL_XATTR_ACCESS;
Expand Down

0 comments on commit 776e4aa

Please sign in to comment.