xfs: avoid a few disk cache flushes
authorChristoph Hellwig <hch@lst.de>
Fri, 8 Jul 2011 12:36:36 +0000 (14:36 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 8 Jul 2011 12:36:36 +0000 (14:36 +0200)
commite163cbde981c5988c3e80ca29589132336f18a72
tree735c72c28476969eddd4a39d878bb194f3609888
parent1d5ae5dfeee024d51fb2c0205035d7611a8f0c86
xfs: avoid a few disk cache flushes

There is no need for a pre-flush when doing writing the second part of a
split log buffer, and if we are using an external log there is no need
to do a full cache flush of the log device at all given that all writes
to it use the FUA flag.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Elder <aelder@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_log.c