Searched refs:newfl (Results 1 – 2 of 2) sorted by relevance
375 struct file_lock *newfl; in allocate_file_lock() local384 newfl = malloc(sizeof(*newfl) - sizeof(newfl->client_name) + n + 1); in allocate_file_lock()385 if (newfl == NULL) { in allocate_file_lock()388 bzero(newfl, sizeof(*newfl) - sizeof(newfl->client_name)); in allocate_file_lock()389 memcpy(newfl->client_name, caller_name, n); in allocate_file_lock()390 newfl->client_name[n] = 0; in allocate_file_lock()392 newfl->client.oh.n_bytes = malloc(lockowner->n_len); in allocate_file_lock()393 if (newfl->client.oh.n_bytes == NULL) { in allocate_file_lock()394 free(newfl); in allocate_file_lock()397 newfl->client.oh.n_len = lockowner->n_len; in allocate_file_lock()[all …]
453 struct flock newfl; in nlm_reclaim_free_lock() local458 newfl = *fl; in nlm_reclaim_free_lock()459 newfl.l_type = F_UNLCK; in nlm_reclaim_free_lock()462 nlm_set_creds_for_lock(td, &newfl); in nlm_reclaim_free_lock()464 error = nlm_advlock_internal(vp, NULL, F_UNLCK, &newfl, F_REMOTE, in nlm_reclaim_free_lock()699 struct flock newfl; in nlm_record_lock() local706 a.a_fl = &newfl; in nlm_record_lock()710 newfl.l_start = fl->l_start; in nlm_record_lock()711 newfl.l_len = fl->l_len; in nlm_record_lock()712 newfl.l_type = fl->l_type; in nlm_record_lock()[all …]