Skip to contentSkip to conversation

remove extraneous security_inode_setattr call in hugetlbfs

PATCH New Chris Wright 1 participant 1 message Jun 28, 2004 HugeTLB

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove extraneous security_inode_setattr call in hugetlbfs

remove extraneous security_inode_setattr call in hugetlbfs, it's already done by VFS.

===== fs/hugetlbfs/inode.c 1.47 vs edited =====

fs/hugetlbfs/inode.c +0 -3
@@ -329,9 +329,6 @@
 	if (error)
 		goto out;
 
-	error = security_inode_setattr(dentry, attr);
-	if (error)
-		goto out;
 	if (ia_valid & ATTR_SIZE) {
 		error = -EINVAL;
 		if (!(attr->ia_size & ~HPAGE_MASK))