2004-06-28 19:49:36

by Chris Wright

[permalink] [raw]
Subject: [PATCH] remove extraneous security_inode_setattr call in hugetlbfs

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

Signed-off-by: Chris Wright <[email protected]>

===== fs/hugetlbfs/inode.c 1.47 vs edited =====
--- 1.47/fs/hugetlbfs/inode.c 2004-05-22 14:56:28 -07:00
+++ edited/fs/hugetlbfs/inode.c 2004-06-25 19:37:34 -07:00
@@ -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))