Home
last modified time | relevance | path

Searched refs:l_resource (Results 1 – 19 of 19) sorted by relevance

/drivers/staging/lustre/lustre/ldlm/
Dldlm_lock.c190 LASSERT(lock->l_resource != LP_POISON); in ldlm_lock_put()
198 res = lock->l_resource; in ldlm_lock_put()
207 lock->l_resource = NULL; in ldlm_lock_put()
232 LASSERT(lock->l_resource->lr_type != LDLM_FLOCK); in ldlm_lock_remove_from_lru_nolock()
269 LASSERT(lock->l_resource->lr_type != LDLM_FLOCK); in ldlm_lock_add_to_lru_nolock()
444 lock->l_resource = resource; in ldlm_lock_new()
488 struct ldlm_resource *oldres = lock->l_resource; in ldlm_lock_change_resource()
495 if (memcmp(new_resid, &lock->l_resource->lr_name, in ldlm_lock_change_resource()
496 sizeof(lock->l_resource->lr_name)) == 0) { in ldlm_lock_change_resource()
522 oldres = lock->l_resource; in ldlm_lock_change_resource()
[all …]
Dl_lock.c57 lock_res(lock->l_resource); in lock_res_and_lock()
60 return lock->l_resource; in lock_res_and_lock()
72 unlock_res(lock->l_resource); in unlock_res_and_lock()
Dldlm_extent.c69 struct ldlm_resource *res = lock->l_resource; in ldlm_extent_shift_kms()
104 LASSERT(lock->l_resource->lr_type == LDLM_EXTENT); in ldlm_interval_alloc()
128 LASSERT(l->l_resource->lr_type == LDLM_EXTENT); in ldlm_interval_attach()
200 struct ldlm_resource *res = lock->l_resource; in ldlm_extent_unlink_lock()
Dldlm_request.c196 ldlm_reprocess_all(lock->l_resource); in ldlm_completion_ast_async()
499 if (lock->l_resource->lr_type == LDLM_FLOCK) { in failed_lock_cleanup()
618 if (!ldlm_res_eq(&reply->lock_desc.l_resource.lr_name, in ldlm_cli_enqueue_fini()
619 &lock->l_resource->lr_name)) { in ldlm_cli_enqueue_fini()
622 PLDLMRES(&reply->lock_desc.l_resource), in ldlm_cli_enqueue_fini()
623 PLDLMRES(lock->l_resource)); in ldlm_cli_enqueue_fini()
626 &reply->lock_desc.l_resource.lr_name); in ldlm_cli_enqueue_fini()
627 if (rc || lock->l_resource == NULL) { in ldlm_cli_enqueue_fini()
638 lock->l_resource->lr_type, in ldlm_cli_enqueue_fini()
1122 ldlm_reprocess_all(lock->l_resource); in ldlm_cli_cancel_local()
[all …]
Dldlm_lockd.c257 if (lock->l_resource->lr_type != LDLM_PLAIN) { in ldlm_handle_cp_callback()
259 dlm_req->lock_desc.l_resource.lr_type, in ldlm_handle_cp_callback()
266 if (memcmp(&dlm_req->lock_desc.l_resource.lr_name, in ldlm_handle_cp_callback()
267 &lock->l_resource->lr_name, in ldlm_handle_cp_callback()
268 sizeof(lock->l_resource->lr_name)) != 0) { in ldlm_handle_cp_callback()
271 &dlm_req->lock_desc.l_resource.lr_name); in ldlm_handle_cp_callback()
Dldlm_flock.c123 check_res_locked(req->l_resource); in ldlm_flock_blocking_unlink()
249 struct ldlm_resource *res = req->l_resource; in ldlm_process_flock_lock()
Dldlm_resource.c1286 struct ldlm_resource *res = original->l_resource; in ldlm_resource_insert_lock_after()
1306 int type = lock->l_resource->lr_type; in ldlm_resource_unlink_lock()
1308 check_res_locked(lock->l_resource); in ldlm_resource_unlink_lock()
Dldlm_pool.c899 if (lock->l_resource->lr_type == LDLM_FLOCK) in ldlm_pool_add()
924 if (lock->l_resource->lr_type == LDLM_FLOCK) in ldlm_pool_del()
/drivers/staging/lustre/lustre/mdc/
Dmdc_locks.c134 if (lock->l_resource->lr_lvb_inode && in mdc_set_lock_data()
135 lock->l_resource->lr_lvb_inode != data) { in mdc_set_lock_data()
136 struct inode *old_inode = lock->l_resource->lr_lvb_inode; in mdc_set_lock_data()
144 lock->l_resource->lr_lvb_inode = new_inode; in mdc_set_lock_data()
1046 &lock->l_resource->lr_name), in mdc_finish_intent_lock()
1048 PLDLMRES(lock->l_resource), PFID(&mdt_body->fid1)); in mdc_finish_intent_lock()
Dmdc_request.c2373 if (lock->l_resource->lr_type != LDLM_IBITS) in mdc_cancel_for_recovery()
/drivers/staging/lustre/lustre/include/
Dlustre_dlm.h681 struct ldlm_resource *l_resource; member
961 return lock->l_resource->lr_type == LDLM_IBITS && in ldlm_has_layout()
980 return ldlm_res_to_ns(lock->l_resource); in ldlm_lock_to_ns()
992 return &lock->l_resource->lr_ns_bucket->nsb_at_estimate; in ldlm_lock_to_ns_at()
/drivers/staging/lustre/lustre/llite/
Dllite_lib.c1153 if (lock->l_resource->lr_lvb_inode) { in ll_inode_from_resource_lock()
1155 lli = ll_i2info(lock->l_resource->lr_lvb_inode); in ll_inode_from_resource_lock()
1157 inode = igrab(lock->l_resource->lr_lvb_inode); in ll_inode_from_resource_lock()
1159 inode = lock->l_resource->lr_lvb_inode; in ll_inode_from_resource_lock()
1163 lock->l_resource->lr_lvb_inode, in ll_inode_from_resource_lock()
Dnamei.c217 &lock->l_resource->lr_name)) { in ll_md_blocking_ast()
/drivers/staging/lustre/lustre/mgc/
Dmgc_request.c777 PLDLMRES(lock->l_resource), in mgc_blocking_ast()
778 (char *)&lock->l_resource->lr_name.name[0]); in mgc_blocking_ast()
/drivers/staging/lustre/lustre/osc/
Dosc_request.c2092 LASSERT(lock->l_resource->lr_type == einfo->ei_type); in osc_set_lock_data_with_check()
3134 check_res_locked(lock->l_resource); in osc_cancel_for_recovery()
3142 if (lock->l_resource->lr_type == LDLM_EXTENT && in osc_cancel_for_recovery()
/drivers/staging/lustre/lustre/ptlrpc/
Dwiretest.c2998 LASSERTF((int)offsetof(struct ldlm_lock_desc, l_resource) == 0, "found %lld\n", in lustre_assert_wire_constants()
2999 (long long)(int)offsetof(struct ldlm_lock_desc, l_resource)); in lustre_assert_wire_constants()
3000 LASSERTF((int)sizeof(((struct ldlm_lock_desc *)0)->l_resource) == 40, "found %lld\n", in lustre_assert_wire_constants()
3001 (long long)(int)sizeof(((struct ldlm_lock_desc *)0)->l_resource)); in lustre_assert_wire_constants()
Dpack_generic.c2246 lustre_swab_ldlm_resource_desc(&l->l_resource); in lustre_swab_ldlm_lock_desc()
/drivers/staging/lustre/lustre/include/lustre/
Dlustre_idl.h2794 struct ldlm_resource_desc l_resource; member
/drivers/staging/lustre/lustre/lov/
Dlov_obd.c1975 struct ldlm_res_id *res_id = &data->lock->l_resource->lr_name; in lov_get_info()