]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[GFS2] Tidy up glops calls
authorSteven Whitehouse <swhiteho@redhat.com>
Mon, 22 Jan 2007 17:15:34 +0000 (12:15 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 5 Feb 2007 18:37:26 +0000 (13:37 -0500)
commitb5d32bead1578afc5ca817d40c320764d50a8600
tree522400e0638b263a9973b05f0da40bafcfc8b0bb
parentf2f5095f9e63db57faa7cb082e958910ecdd7ad4
[GFS2] Tidy up glops calls

This patch doesn't make any changes to the ordering of the various
operations related to glocking, but it does tidy up the calls to the
glops.c functions to make the structure more obvious.

The two functions: gfs2_glock_xmote_th() and gfs2_glock_drop_th() can be
made static within glock.c since they are called by every set of glock
operations. The xmote_th and drop_th glock operations are then made
conditional upon those two routines existing and called from the
previously mentioned functions in glock.c respectively.

Also it can be seen that the go_sync operation isn't needed since it can
easily be replaced by calls to xmote_bh and drop_bh respectively. This
results in no longer (confusingly) calling back into routines in glock.c
from glops.c and also reducing the glock operations by one member.

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