xfs: fix xfs_quiesce_data
authorDave Chinner <david@fromorbit.com>
Tue, 6 Oct 2009 20:29:27 +0000 (20:29 +0000)
committerAlex Elder <aelder@sgi.com>
Thu, 8 Oct 2009 17:00:36 +0000 (12:00 -0500)
commitc90b07e8dd9f263d2e2af1d9648ba269f4d0d8fd
treea2dd23b15d74f1ea338394c545ae5d569a1fb557
parentf9581b1443abac50c90168301d40a7734b13a5dc
xfs: fix xfs_quiesce_data

We need to do a synchronous xfs_sync_fsdata to make sure the superblock
actually is on disk when we return.

Also remove SYNC_BDFLUSH flag to xfs_sync_inodes because that particular
flag is never checked.

Move xfs_filestream_flush call later to only release inodes after they
have been written out.

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