summaryrefslogtreecommitdiffstats
path: root/fs/ceph/acl.c
diff options
context:
space:
mode:
authorZhang Zhen <zhenzhang.zhang@huawei.com>2014-04-10 07:29:17 +0200
committerYan, Zheng <zheng.z.yan@intel.com>2014-06-06 03:29:50 +0200
commit979d4c1895474aafa473f441846dd3b6f7276202 (patch)
treecead35c5a059c604263d17df5b8728636ec08d71 /fs/ceph/acl.c
parentceph: ceph_get_parent() can be static (diff)
downloadlinux-979d4c1895474aafa473f441846dd3b6f7276202.tar.xz
linux-979d4c1895474aafa473f441846dd3b6f7276202.zip
ceph: 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> Reviewed-by: Yan, Zheng <zheng.z.yan@intel.com>
Diffstat (limited to 'fs/ceph/acl.c')
-rw-r--r--fs/ceph/acl.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ceph/acl.c b/fs/ceph/acl.c
index 21887d63dad5..469f2e8657e8 100644
--- a/fs/ceph/acl.c
+++ b/fs/ceph/acl.c
@@ -104,12 +104,6 @@ int ceph_set_acl(struct inode *inode, struct posix_acl *acl, int type)
umode_t new_mode = inode->i_mode, old_mode = inode->i_mode;
struct dentry *dentry;
- if (acl) {
- ret = posix_acl_valid(acl);
- if (ret < 0)
- goto out;
- }
-
switch (type) {
case ACL_TYPE_ACCESS:
name = POSIX_ACL_XATTR_ACCESS;