]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Use -errno instead of dlm_status for ocfs2_dlm_lock/unlock() API.
authorJoel Becker <joel.becker@oracle.com>
Fri, 1 Feb 2008 20:15:37 +0000 (12:15 -0800)
committerMark Fasheh <mfasheh@suse.com>
Fri, 18 Apr 2008 15:56:03 +0000 (08:56 -0700)
commit326e5f85a1d1636a55123520a2eb5c822765684f
tree748d55c349f12ee504635748c64ee14026eda556
parent45eeaf3f617192d6330cea0e2501a92e5e8b3115
ocfs2: Use -errno instead of dlm_status for ocfs2_dlm_lock/unlock() API.

Change the ocfs2_dlm_lock/unlock() functions to return -errno values.
This is the first step towards elminiating dlm_status in
fs/ocfs2/dlmglue.c.  The change also passes -errno values to
->unlock_ast().

[ Fix a return code in dlmglue.c and change the error translation table into
  an array of ints. --Mark ]

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/dlmglue.c
fs/ocfs2/stackglue.c
fs/ocfs2/stackglue.h