From: Gu Zheng Date: Tue, 24 Jun 2014 10:18:14 +0000 (+0800) Subject: f2fs: remove the redundant validation check of acl X-Git-Tag: Ubuntu-snapdragon-4.4.0-1029.32~8315^2~31 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=34e6d456da4a61f655655a6d431657da5753913f;p=mirror_ubuntu-zesty-kernel.git f2fs: remove the redundant validation check of acl kernel side(xx_init_acl), the acl is get/cloned from the parent dir's, which is credible. So remove the redundant validation check of acl here. Signed-off-by: Gu Zheng Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/acl.c b/fs/f2fs/acl.c index dbe2141d10ad..83b9b5a8d112 100644 --- a/fs/f2fs/acl.c +++ b/fs/f2fs/acl.c @@ -203,12 +203,6 @@ static int __f2fs_set_acl(struct inode *inode, int type, size_t size = 0; int error; - if (acl) { - error = posix_acl_valid(acl); - if (error < 0) - return error; - } - switch (type) { case ACL_TYPE_ACCESS: name_index = F2FS_XATTR_INDEX_POSIX_ACL_ACCESS;