diff options
author | ZhangZhen <zhenzhang.zhang@huawei.com> | 2014-04-08 15:30:19 +0400 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-06-10 04:20:42 +0400 |
commit | 776e4aae5508848730a82b4695edfbd7bc802c33 (patch) | |
tree | e330f3f77aeebd7a66d45dfbb0ab7826687d2bdb /fs/btrfs/acl.c | |
parent | 4d90d28b1c5c5ab6292c0888dc1ebdfc3023f877 (diff) | |
download | linux-776e4aae5508848730a82b4695edfbd7bc802c33.tar.xz |
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>
Diffstat (limited to 'fs/btrfs/acl.c')
-rw-r--r-- | fs/btrfs/acl.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/fs/btrfs/acl.c b/fs/btrfs/acl.c index ff9b3995d453..9a0124a95851 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; |