Lines Matching defs:newlock
63 static void dlm_init_lock(struct dlm_lock *newlock, int type,
399 static void dlm_init_lock(struct dlm_lock *newlock, int type,
402 INIT_LIST_HEAD(&newlock->list);
403 INIT_LIST_HEAD(&newlock->ast_list);
404 INIT_LIST_HEAD(&newlock->bast_list);
405 spin_lock_init(&newlock->spinlock);
406 newlock->ml.type = type;
407 newlock->ml.convert_type = LKM_IVMODE;
408 newlock->ml.highest_blocked = LKM_IVMODE;
409 newlock->ml.node = node;
410 newlock->ml.pad1 = 0;
411 newlock->ml.list = 0;
412 newlock->ml.flags = 0;
413 newlock->ast = NULL;
414 newlock->bast = NULL;
415 newlock->astdata = NULL;
416 newlock->ml.cookie = cpu_to_be64(cookie);
417 newlock->ast_pending = 0;
418 newlock->bast_pending = 0;
419 newlock->convert_pending = 0;
420 newlock->lock_pending = 0;
421 newlock->unlock_pending = 0;
422 newlock->cancel_pending = 0;
423 newlock->lksb_kernel_allocated = 0;
425 kref_init(&newlock->lock_refs);
469 struct dlm_lock *newlock = NULL;
500 newlock = dlm_new_lock(create->requested_type,
503 if (!newlock) {
508 lksb = newlock->lksb;
531 dlm_lock_attach_lockres(newlock, res);
533 status = dlmlock_master(dlm, res, newlock, be32_to_cpu(create->flags));
536 if (newlock)
537 dlm_lock_put(newlock);