Lines Matching full:create
287 struct dlm_create_lock create; in dlm_send_remote_lock_request() local
291 memset(&create, 0, sizeof(create)); in dlm_send_remote_lock_request()
292 create.node_idx = dlm->node_num; in dlm_send_remote_lock_request()
293 create.requested_type = lock->ml.type; in dlm_send_remote_lock_request()
294 create.cookie = lock->ml.cookie; in dlm_send_remote_lock_request()
295 create.namelen = res->lockname.len; in dlm_send_remote_lock_request()
296 create.flags = cpu_to_be32(flags); in dlm_send_remote_lock_request()
297 memcpy(create.name, res->lockname.name, create.namelen); in dlm_send_remote_lock_request()
299 tmpret = o2net_send_message(DLM_CREATE_LOCK_MSG, dlm->key, &create, in dlm_send_remote_lock_request()
300 sizeof(create), res->owner, &status); in dlm_send_remote_lock_request()
306 "currently.\n", dlm->name, create.namelen, in dlm_send_remote_lock_request()
307 create.name, res->owner); in dlm_send_remote_lock_request()
312 mlog(ML_ERROR, "%s: res %.*s, Error %d send CREATE LOCK to " in dlm_send_remote_lock_request()
313 "node %u\n", dlm->name, create.namelen, create.name, in dlm_send_remote_lock_request()
444 struct dlm_create_lock *create = (struct dlm_create_lock *)msg->buf; in dlm_create_lock_handler() local
457 name = create->name; in dlm_create_lock_handler()
458 namelen = create->namelen; in dlm_create_lock_handler()
463 dlm->name, create->node_idx, namelen, name); in dlm_create_lock_handler()
475 newlock = dlm_new_lock(create->requested_type, in dlm_create_lock_handler()
476 create->node_idx, in dlm_create_lock_handler()
477 be64_to_cpu(create->cookie), NULL); in dlm_create_lock_handler()
485 if (be32_to_cpu(create->flags) & LKM_GET_LVB) { in dlm_create_lock_handler()
508 status = dlmlock_master(dlm, res, newlock, be32_to_cpu(create->flags)); in dlm_create_lock_handler()
660 /* find or create the lock resource */ in dlmlock()