GFS2: Clean up log flush header writing
authorSteven Whitehouse <swhiteho@redhat.com>
Fri, 9 Mar 2012 10:45:56 +0000 (10:45 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 9 Mar 2012 14:07:06 +0000 (14:07 +0000)
commit34cc1781c2ae921107e89f6633cfab7436e355ba
treee9577ab5ca926d6f2aaa8f0a0b28222c87071088
parent75ca61c101601a7071d93571920be9697b3fda9b
GFS2: Clean up log flush header writing

We already send both a pre and post flush to the block device
when writing a journal header. There is no need to wait for
the previous I/O specifically when we do this, unless we've
turned "barriers" off.

As a side effect, this also cleans up the code path for flushing
the journal and makes it more readable.

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