[GFS2] Fix bug where we called drop_bh incorrectly
authorSteven Whitehouse <swhiteho@redhat.com>
Tue, 12 Feb 2008 15:28:21 +0000 (15:28 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 31 Mar 2008 09:41:01 +0000 (10:41 +0100)
commit840ca0ec70903ce8e0fba1596460876c796e4f60
treefd9f86615fe0450cfb8d46bdd17fbea33fa1008f
parente23159d2a7b2df5bce5f0ee8d57d3292243abf66
[GFS2] Fix bug where we called drop_bh incorrectly

As a result of an earlier patch, drop_bh was being called in cases
when it shouldn't have been. Since we never have a gh in the drop
case and we always have a gh in the promote case, we can use that
extra information to tell which case has been seen.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/glock.c