]> git.baikalelectronics.ru Git - kernel.git/commit
[GFS2] Reorder writeback for glock sync
authorSteven Whitehouse <swhiteho@redhat.com>
Fri, 2 Nov 2007 08:39:34 +0000 (08:39 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 25 Jan 2008 08:07:42 +0000 (08:07 +0000)
commite9c4f0ce30628cc43f1bd204105fb2166570cf41
tree032653f2111bf20c1f4610d3801c42020c3a1abd
parent9b396dc96de7b0fee2047a74bd68f5a4dd155e16
[GFS2] Reorder writeback for glock sync

Previously we were doing (write data, wait for data, write metadata, wait
for metadata). After this patch we so (write metadata, write data, wait for
data, wait for metadata) which should be more efficient.

Also I noticed that the drop_bh and xmote_bh functions were almost
identical. In fact the only difference was a single test, and that
test is such that in the drop_bh case, it would always evaluate to
the correct result. As such we can use the xmote_bh functions in
all the places where we were using the drop_bh function and remove
the drop_bh functions.

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