Lines Matching full:create

289 	struct dlm_create_lock create;  in dlm_send_remote_lock_request()  local
293 memset(&create, 0, sizeof(create)); in dlm_send_remote_lock_request()
294 create.node_idx = dlm->node_num; in dlm_send_remote_lock_request()
295 create.requested_type = lock->ml.type; in dlm_send_remote_lock_request()
296 create.cookie = lock->ml.cookie; in dlm_send_remote_lock_request()
297 create.namelen = res->lockname.len; in dlm_send_remote_lock_request()
298 create.flags = cpu_to_be32(flags); in dlm_send_remote_lock_request()
299 memcpy(create.name, res->lockname.name, create.namelen); in dlm_send_remote_lock_request()
301 tmpret = o2net_send_message(DLM_CREATE_LOCK_MSG, dlm->key, &create, in dlm_send_remote_lock_request()
302 sizeof(create), res->owner, &status); in dlm_send_remote_lock_request()
308 "currently.\n", dlm->name, create.namelen, in dlm_send_remote_lock_request()
309 create.name, res->owner); in dlm_send_remote_lock_request()
314 mlog(ML_ERROR, "%s: res %.*s, Error %d send CREATE LOCK to " in dlm_send_remote_lock_request()
315 "node %u\n", dlm->name, create.namelen, create.name, in dlm_send_remote_lock_request()
446 struct dlm_create_lock *create = (struct dlm_create_lock *)msg->buf; in dlm_create_lock_handler() local
459 name = create->name; in dlm_create_lock_handler()
460 namelen = create->namelen; in dlm_create_lock_handler()
465 dlm->name, create->node_idx, namelen, name); in dlm_create_lock_handler()
477 newlock = dlm_new_lock(create->requested_type, in dlm_create_lock_handler()
478 create->node_idx, in dlm_create_lock_handler()
479 be64_to_cpu(create->cookie), NULL); in dlm_create_lock_handler()
487 if (be32_to_cpu(create->flags) & LKM_GET_LVB) { in dlm_create_lock_handler()
510 status = dlmlock_master(dlm, res, newlock, be32_to_cpu(create->flags)); in dlm_create_lock_handler()
662 /* find or create the lock resource */ in dlmlock()