GFS2: Make ->write_inode() really write
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 30 Mar 2011 15:13:25 +0000 (16:13 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 20 Apr 2011 07:55:07 +0000 (08:55 +0100)
commit1027efaa238e1b65c07b6c2d9e270e548c2bdb07
treedc02c7a8ebeb2b7c52a09b0150019f6236ca3de9
parent556bb17998a37dabf7e9e96aa545bcea899be745
GFS2: Make ->write_inode() really write

The GFS2 ->write_inode function should be more aggressive at writing
back to the filesystem. This adopts the XFS system of returning
-EAGAIN when the writeback has not been completely done. Also, we
now kick off in-place writeback when called with WB_SYNC_NONE,
but we only wait for it and flush the log when WB_SYNC_ALL is
requested.

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