diff options
author | Christoph Hellwig <hch@infradead.org> | 2010-02-03 20:43:31 +0100 |
---|---|---|
committer | Alex Elder <aelder@sgi.com> | 2010-02-12 20:43:57 +0100 |
commit | 87185517de81101da5afbc82cefdeed6eeaa38fb (patch) | |
tree | 29cb781d74d5e81d941e1a913222de90f6266477 /fs/xfs/xfs_rw.h | |
parent | xfs: kill xfs_bawrite (diff) | |
download | linux-87185517de81101da5afbc82cefdeed6eeaa38fb.tar.xz linux-87185517de81101da5afbc82cefdeed6eeaa38fb.zip |
xfs: only clear the suid bit once in xfs_write
file_remove_suid already calls into ->setattr to clear the suid and
sgid bits if needed, no need to start a second transaction to do it
ourselves.
Note that xfs_write_clear_setuid issues a sync transaction while the
path through ->setattr doesn't, but that is consistant with the
other filesystems.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_rw.h')
-rw-r--r-- | fs/xfs/xfs_rw.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/xfs/xfs_rw.h b/fs/xfs/xfs_rw.h index a54c3b7cd376..11c41ec6ed75 100644 --- a/fs/xfs/xfs_rw.h +++ b/fs/xfs/xfs_rw.h @@ -39,7 +39,6 @@ xfs_fsb_to_db(struct xfs_inode *ip, xfs_fsblock_t fsb) /* * Prototypes for functions in xfs_rw.c. */ -extern int xfs_write_clear_setuid(struct xfs_inode *ip); extern int xfs_read_buf(struct xfs_mount *mp, xfs_buftarg_t *btp, xfs_daddr_t blkno, int len, uint flags, struct xfs_buf **bpp); |