GFS2: Split data write & wait in fsync
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 27 Jul 2011 09:58:48 +0000 (10:58 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 21 Oct 2011 11:39:18 +0000 (12:39 +0100)
commit2f0264d592e34cde99efbad7d616b04af138e913
treec3839570b304396513c8cc296a3fc7130b6066f1
parent4c28d33803d4aeaff32b4ac502af11a9b2aed8f4
GFS2: Split data write & wait in fsync

Now that the data writing is part of fsync proper, we can split
the waiting part out and do it later on. This reduces the
number of waits that we do during fsync on average.

There is also no need to take the i_mutex unless we are flushing
metadata to disk, so we can move that to within the metadata
flushing code.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/file.c