From: ZhangZhen Date: Tue, 8 Apr 2014 11:30:19 +0000 (+0800) Subject: btrfs: remove useless ACL check X-Git-Tag: v4.9.8~6070^2~93 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=776e4aae5508848730a82b4695edfbd7bc802c33;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: Chris Mason --- diff --git a/fs/btrfs/acl.c b/fs/btrfs/acl.c index ff9b399..9a0124a 100644 --- a/fs/btrfs/acl.c +++ b/fs/btrfs/acl.c @@ -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;