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