Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

btrfs: remove useless ACL check

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>

authored by

ZhangZhen and committed by
Chris Mason
776e4aae 4d90d28b

-7
-7
fs/btrfs/acl.c
··· 79 79 const char *name; 80 80 char *value = NULL; 81 81 82 - if (acl) { 83 - ret = posix_acl_valid(acl); 84 - if (ret < 0) 85 - return ret; 86 - ret = 0; 87 - } 88 - 89 82 switch (type) { 90 83 case ACL_TYPE_ACCESS: 91 84 name = POSIX_ACL_XATTR_ACCESS;