aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_iops.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_iops.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_iops.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c
index 669bbdc20857..e88f51028086 100644
--- a/fs/xfs/linux-2.6/xfs_iops.c
+++ b/fs/xfs/linux-2.6/xfs_iops.c
@@ -650,21 +650,7 @@ xfs_vn_setattr(
650 struct dentry *dentry, 650 struct dentry *dentry,
651 struct iattr *iattr) 651 struct iattr *iattr)
652{ 652{
653 struct inode *inode = dentry->d_inode; 653 return -xfs_setattr(XFS_I(dentry->d_inode), iattr, 0, NULL);
654 int error;
655
656 if (iattr->ia_valid & ATTR_ATIME)
657 inode->i_atime = iattr->ia_atime;
658
659 if (iattr->ia_valid & ATTR_MODE) {
660 if (!in_group_p(inode->i_gid) && !capable(CAP_FSETID))
661 inode->i_mode &= ~S_ISGID;
662 }
663
664 error = xfs_setattr(XFS_I(inode), iattr, 0, NULL);
665 if (likely(!error))
666 vn_revalidate(vn_from_inode(inode));
667 return -error;
668} 654}
669 655
670/* 656/*