]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
xfs: make log devices with write back caches work
authorChristoph Hellwig <hch@infradead.org>
Thu, 16 Jun 2011 12:02:23 +0000 (12:02 +0000)
committerAlex Elder <aelder@sgi.com>
Thu, 16 Jun 2011 15:52:39 +0000 (10:52 -0500)
commita27a263bae072a499acc77b632238a6dacccf888
treeb2728b2900c3926cba5833e171b56bc7371dbc07
parentc46a131c0c0f4c2457e6b1e430c578a5cb057334
xfs: make log devices with write back caches work

There's no reason not to support cache flushing on external log devices.
The only thing this really requires is flushing the data device first
both in fsync and log commits.  A side effect is that we also have to
remove the barrier write test during mount, which has been superflous
since the new FLUSH+FUA code anyway.  Also use the chance to flush the
RT subvolume write cache before the fsync commit, which is required
for correct semantics.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/linux-2.6/xfs_file.c
fs/xfs/linux-2.6/xfs_super.c
fs/xfs/xfs_log.c