Displaying 1 result from an estimated 1 matches for "dlm_lksb_get_lvb".
2010 Aug 26
1
[PATCH 2/5] ocfs2/dlm: add lockres as parameter to dlm_new_lock()
...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->lksb;
-
- if (be32_to_cpu(create->flags) & LKM_GET_LVB) {
- lksb->flags |= DLM_LKSB_GET_LVB;
- mlog(0, "set DLM_LKSB_GET_LVB flag\n");
- }
-
status = DLM_IVLOCKID;
res = dlm_lookup_lockres(dlm, name, namelen);
if (!res) {
@@ -534,6 +519,22 @@ int dlm_create_lock_handler(struct o2net_msg *msg, u32 len, void *data,
goto leave;
}
+ status = DLM_SYSERR;
+ newlock = dlm...