Lines Matching refs:newlock
46 static void dlm_init_lock(struct dlm_lock *newlock, int type,
376 static void dlm_init_lock(struct dlm_lock *newlock, int type,
379 INIT_LIST_HEAD(&newlock->list);
380 INIT_LIST_HEAD(&newlock->ast_list);
381 INIT_LIST_HEAD(&newlock->bast_list);
382 spin_lock_init(&newlock->spinlock);
383 newlock->ml.type = type;
384 newlock->ml.convert_type = LKM_IVMODE;
385 newlock->ml.highest_blocked = LKM_IVMODE;
386 newlock->ml.node = node;
387 newlock->ml.pad1 = 0;
388 newlock->ml.list = 0;
389 newlock->ml.flags = 0;
390 newlock->ast = NULL;
391 newlock->bast = NULL;
392 newlock->astdata = NULL;
393 newlock->ml.cookie = cpu_to_be64(cookie);
394 newlock->ast_pending = 0;
395 newlock->bast_pending = 0;
396 newlock->convert_pending = 0;
397 newlock->lock_pending = 0;
398 newlock->unlock_pending = 0;
399 newlock->cancel_pending = 0;
400 newlock->lksb_kernel_allocated = 0;
402 kref_init(&newlock->lock_refs);
446 struct dlm_lock *newlock = NULL;
475 newlock = dlm_new_lock(create->requested_type,
478 if (!newlock) {
483 lksb = newlock->lksb;
506 dlm_lock_attach_lockres(newlock, res);
508 status = dlmlock_master(dlm, res, newlock, be32_to_cpu(create->flags));
511 if (newlock)
512 dlm_lock_put(newlock);