]> bbs.cooldavid.org Git - net-next-2.6.git/commit - fs/ocfs2/stack_o2cb.c
ocfs2: Pass lksbs back from stackglue ast/bast functions.
authorJoel Becker <joel.becker@oracle.com>
Fri, 29 Jan 2010 03:22:39 +0000 (19:22 -0800)
committerJoel Becker <joel.becker@oracle.com>
Fri, 26 Feb 2010 23:41:14 +0000 (15:41 -0800)
commita796d2862aed8117acc9f470f3429a5ee852912e
tree71b837ae91effcdb4283e8c0bbf5c3162e7e21e1
parent34a9dd7e29e9129fec40c645a03f1bbbe810e771
ocfs2: Pass lksbs back from stackglue ast/bast functions.

The stackglue ast and bast functions tried to maintain the fiction that
their arguments were void pointers.  In reality, stack_user.c had to
know that the argument was an ocfs2_lock_res in order to get the status
off of the lksb.  That's ugly.

This changes stackglue to always pass the lksb as the argument to ast
and bast functions.  The caller can always use container_of() to get the
ocfs2_lock_res or user_dlm_lock_res.  The net effect to the caller is
zero.  They still get back the lockres in their ast.  stackglue gets
cleaner, and now can use the lksb itself.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/dlmglue.c
fs/ocfs2/stack_o2cb.c
fs/ocfs2/stack_user.c
fs/ocfs2/stackglue.c
fs/ocfs2/stackglue.h