• Home
  • Raw
  • Download

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