Skip to contentSkip to conversation

f2fs: remove the redundant validation check of acl

PATCH In review Gu Zheng 1 participant 1 message Jun 24, 2014

Subsystems (2)
lore
Share & tools
lore

Gu Zheng

author
#0 lore raw

PATCH 1/4 f2fs: remove the redundant validation check of acl

Quoted 1 line

From the userspace side, VFS layer does the check; and from the

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.

---
 fs/f2fs/acl.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
fs/f2fs/acl.c +0 -6
index dbe2141..83b9b5a 100644
@@ -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;
Signature · 1 line
1.7.7