aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_vnodeops.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2008-10-30 03:27:48 -0400
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>2008-10-30 03:27:48 -0400
commitea5a3dc8356bf1cf27bab9a5a0da5dfbbb82013d (patch)
tree30af54170d0cb3b06c2ac21bc31bc57fc5eb4d43 /fs/xfs/xfs_vnodeops.c
parent7ee49acfe54883f16d28d9486b789431a5804d18 (diff)
[XFS] kill sys_cred
capable_cred has been unused for a while so we can kill it and sys_cred. That also means the cred argument to xfs_setattr and xfs_change_file_space can be removed now. SGI-PV: 988918 SGI-Modid: xfs-linux-melb:xfs-kern:32412a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Tim Shimmin <tes@sgi.com> Signed-off-by: David Chinner <david@fromorbit.com> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
-rw-r--r--fs/xfs/xfs_vnodeops.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/xfs/xfs_vnodeops.c b/fs/xfs/xfs_vnodeops.c
index 1c890113ab3e..34a1982ed6dc 100644
--- a/fs/xfs/xfs_vnodeops.c
+++ b/fs/xfs/xfs_vnodeops.c
@@ -79,8 +79,7 @@ int
79xfs_setattr( 79xfs_setattr(
80 struct xfs_inode *ip, 80 struct xfs_inode *ip,
81 struct iattr *iattr, 81 struct iattr *iattr,
82 int flags, 82 int flags)
83 cred_t *credp)
84{ 83{
85 xfs_mount_t *mp = ip->i_mount; 84 xfs_mount_t *mp = ip->i_mount;
86 struct inode *inode = VFS_I(ip); 85 struct inode *inode = VFS_I(ip);
@@ -3362,7 +3361,6 @@ xfs_change_file_space(
3362 int cmd, 3361 int cmd,
3363 xfs_flock64_t *bf, 3362 xfs_flock64_t *bf,
3364 xfs_off_t offset, 3363 xfs_off_t offset,
3365 cred_t *credp,
3366 int attr_flags) 3364 int attr_flags)
3367{ 3365{
3368 xfs_mount_t *mp = ip->i_mount; 3366 xfs_mount_t *mp = ip->i_mount;
@@ -3450,7 +3448,7 @@ xfs_change_file_space(
3450 iattr.ia_valid = ATTR_SIZE; 3448 iattr.ia_valid = ATTR_SIZE;
3451 iattr.ia_size = startoffset; 3449 iattr.ia_size = startoffset;
3452 3450
3453 error = xfs_setattr(ip, &iattr, attr_flags, credp); 3451 error = xfs_setattr(ip, &iattr, attr_flags);
3454 3452
3455 if (error) 3453 if (error)
3456 return error; 3454 return error;