]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Wed, 27 Jul 2011 20:02:05 +0000 (21:02 +0100)
commit47372af9d94c72399d93a3a31ba3ea92bda0ec11
tree5e6ad03d9e8d1d47fd2d4ad1da96d703486aef26
parent81f7579bdab92fa0e647aa8ad69501e5fc2c4f70
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