Lines Matching refs:newlock
48 static void dlm_init_lock(struct dlm_lock *newlock, int type,
378 static void dlm_init_lock(struct dlm_lock *newlock, int type,
381 INIT_LIST_HEAD(&newlock->list);
382 INIT_LIST_HEAD(&newlock->ast_list);
383 INIT_LIST_HEAD(&newlock->bast_list);
384 spin_lock_init(&newlock->spinlock);
385 newlock->ml.type = type;
386 newlock->ml.convert_type = LKM_IVMODE;
387 newlock->ml.highest_blocked = LKM_IVMODE;
388 newlock->ml.node = node;
389 newlock->ml.pad1 = 0;
390 newlock->ml.list = 0;
391 newlock->ml.flags = 0;
392 newlock->ast = NULL;
393 newlock->bast = NULL;
394 newlock->astdata = NULL;
395 newlock->ml.cookie = cpu_to_be64(cookie);
396 newlock->ast_pending = 0;
397 newlock->bast_pending = 0;
398 newlock->convert_pending = 0;
399 newlock->lock_pending = 0;
400 newlock->unlock_pending = 0;
401 newlock->cancel_pending = 0;
402 newlock->lksb_kernel_allocated = 0;
404 kref_init(&newlock->lock_refs);
448 struct dlm_lock *newlock = NULL;
477 newlock = dlm_new_lock(create->requested_type,
480 if (!newlock) {
485 lksb = newlock->lksb;
508 dlm_lock_attach_lockres(newlock, res);
510 status = dlmlock_master(dlm, res, newlock, be32_to_cpu(create->flags));
513 if (newlock)
514 dlm_lock_put(newlock);