瀏覽代碼

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>
ZhangZhen 11 年之前
父節點
當前提交
776e4aae55
共有 1 個文件被更改,包括 0 次插入7 次删除
  1. 0 7
      fs/btrfs/acl.c

+ 0 - 7
fs/btrfs/acl.c

@@ -79,13 +79,6 @@ static int __btrfs_set_acl(struct btrfs_trans_handle *trans,
 	const char *name;
 	const char *name;
 	char *value = NULL;
 	char *value = NULL;
 
 
-	if (acl) {
-		ret = posix_acl_valid(acl);
-		if (ret < 0)
-			return ret;
-		ret = 0;
-	}
-
 	switch (type) {
 	switch (type) {
 	case ACL_TYPE_ACCESS:
 	case ACL_TYPE_ACCESS:
 		name = POSIX_ACL_XATTR_ACCESS;
 		name = POSIX_ACL_XATTR_ACCESS;