xfs: make sure xfs_sync_fsdata covers the log
authorDave Chinner <david@fromorbit.com>
Tue, 6 Oct 2009 20:29:30 +0000 (20:29 +0000)
committerAlex Elder <aelder@sgi.com>
Thu, 8 Oct 2009 17:01:49 +0000 (12:01 -0500)
commitdce5065a57c158e0ca5db8e63c50118b2ecf4ac5
tree3cd53a5fd21551585e0c01febbf9daebed8d5749
parent932640e8adaff3d0c28ee32d4863c7a7a74df055
xfs: make sure xfs_sync_fsdata covers the log

We want to always cover the log after writing out the superblock, and
in case of a synchronous writeout make sure we actually wait for the
log to be covered.  That way a filesystem that has been sync()ed can
be considered clean by log recovery.

Signed-off-by: Dave Chinner <david@fromorbit.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Alex Elder <aelder@sgi.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
fs/xfs/linux-2.6/xfs_sync.c