GFS2: Move journal live test at transaction start
authorSteven Whitehouse <swhiteho@redhat.com>
Wed, 13 May 2009 09:56:52 +0000 (10:56 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 13 May 2009 09:56:52 +0000 (10:56 +0100)
commita1c0643ff9f360a30644f6e3cd643ca2a5083aea
treeca4c33e1a078b905374e67d424ef51927875d3cc
parent7537d81aa7b7cd31b0caeac8091456e93d96fa8d
GFS2: Move journal live test at transaction start

There seems little point grabbing the transaction glock
only to have to release it again if the journal isn't
live. This moves the test earlier to avoid grabbing the lock
when we don't need it in the first place.

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