Displaying 1 result from an estimated 1 matches for "dlm_create_lock_handler".
2010 Aug 26
1
[PATCH 2/5] ocfs2/dlm: add lockres as parameter to dlm_new_lock()
...r *dlm_alloc_lvb(char **lvb)
}
struct dlm_lock * dlm_new_lock(int type, u8 node, u64 cookie,
- struct dlm_lockstatus *lksb)
+ struct dlm_lockstatus *lksb,
+ struct dlm_lock_resource *res)
{
struct dlm_lock *lock;
int kernel_allocated = 0;
@@ -502,22 +503,6 @@ int dlm_create_lock_handler(struct o2net_msg *msg, u32 len, void *data,
goto leave;
}
- status = DLM_SYSERR;
- newlock = dlm_new_lock(create->requested_type,
- create->node_idx,
- be64_to_cpu(create->cookie), NULL);
- if (!newlock) {
- dlm_error(status);
- goto leave;
- }
-
- lksb = newlock...