Эх сурвалжийг харах

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 <guz.fnst@cn.fujitsu.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Gu Zheng 11 жил өмнө
parent
commit
34e6d456da
1 өөрчлөгдсөн 0 нэмэгдсэн , 6 устгасан
  1. 0 6
      fs/f2fs/acl.c

+ 0 - 6
fs/f2fs/acl.c

@@ -203,12 +203,6 @@ static int __f2fs_set_acl(struct inode *inode, int type,
 	size_t size = 0;
 	size_t size = 0;
 	int error;
 	int error;
 
 
-	if (acl) {
-		error = posix_acl_valid(acl);
-		if (error < 0)
-			return error;
-	}
-
 	switch (type) {
 	switch (type) {
 	case ACL_TYPE_ACCESS:
 	case ACL_TYPE_ACCESS:
 		name_index = F2FS_XATTR_INDEX_POSIX_ACL_ACCESS;
 		name_index = F2FS_XATTR_INDEX_POSIX_ACL_ACCESS;