xfs: only clear the suid bit once in xfs_write
authorChristoph Hellwig <hch@infradead.org>
Wed, 3 Feb 2010 19:43:31 +0000 (19:43 +0000)
committerAlex Elder <aelder@sgi.com>
Fri, 12 Feb 2010 19:43:57 +0000 (13:43 -0600)
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>

No differences found