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.c179 LASSERT(lock->l_resource != LP_POISON); in ldlm_lock_put()
187 res = lock->l_resource; in ldlm_lock_put()
196 lock->l_resource = NULL; in ldlm_lock_put()
221 LASSERT(lock->l_resource->lr_type != LDLM_FLOCK); in ldlm_lock_remove_from_lru_nolock()
253 LASSERT(lock->l_resource->lr_type != LDLM_FLOCK); in ldlm_lock_add_to_lru_nolock()
423 lock->l_resource = resource; in ldlm_lock_new()
467 struct ldlm_resource *oldres = lock->l_resource; in ldlm_lock_change_resource()
472 if (memcmp(new_resid, &lock->l_resource->lr_name, in ldlm_lock_change_resource()
473 sizeof(lock->l_resource->lr_name)) == 0) { in ldlm_lock_change_resource()
499 oldres = lock->l_resource; in ldlm_lock_change_resource()
[all …]
Dl_lock.c55 lock_res(lock->l_resource); in lock_res_and_lock()
58 return lock->l_resource; in lock_res_and_lock()
70 unlock_res(lock->l_resource); in unlock_res_and_lock()
Dldlm_extent.c68 struct ldlm_resource *res = lock->l_resource; in ldlm_extent_shift_kms()
104 LASSERT(l->l_resource->lr_type == LDLM_EXTENT); in ldlm_interval_attach()
114 LASSERT(lock->l_resource->lr_type == LDLM_EXTENT); in ldlm_interval_alloc()
202 struct ldlm_resource *res = lock->l_resource; in ldlm_extent_unlink_lock()
Dldlm_request.c320 if (lock->l_resource->lr_type == LDLM_FLOCK) { in failed_lock_cleanup()
439 if (!ldlm_res_eq(&reply->lock_desc.l_resource.lr_name, in ldlm_cli_enqueue_fini()
440 &lock->l_resource->lr_name)) { in ldlm_cli_enqueue_fini()
443 PLDLMRES(&reply->lock_desc.l_resource), in ldlm_cli_enqueue_fini()
444 PLDLMRES(lock->l_resource)); in ldlm_cli_enqueue_fini()
447 &reply->lock_desc.l_resource.lr_name); in ldlm_cli_enqueue_fini()
448 if (rc || lock->l_resource == NULL) { in ldlm_cli_enqueue_fini()
459 lock->l_resource->lr_type, in ldlm_cli_enqueue_fini()
1120 switch (lock->l_resource->lr_type) { in ldlm_cancel_no_wait_policy()
1499 if (policy && (lock->l_resource->lr_type == LDLM_IBITS) && in ldlm_cancel_resource_local()
Dldlm_lockd.c233 if (lock->l_resource->lr_type != LDLM_PLAIN) { in ldlm_handle_cp_callback()
235 dlm_req->lock_desc.l_resource.lr_type, in ldlm_handle_cp_callback()
242 if (memcmp(&dlm_req->lock_desc.l_resource.lr_name, in ldlm_handle_cp_callback()
243 &lock->l_resource->lr_name, in ldlm_handle_cp_callback()
244 sizeof(lock->l_resource->lr_name)) != 0) { in ldlm_handle_cp_callback()
247 &dlm_req->lock_desc.l_resource.lr_name); in ldlm_handle_cp_callback()
Dldlm_pool.c732 if (lock->l_resource->lr_type == LDLM_FLOCK) in ldlm_pool_add()
755 if (lock->l_resource->lr_type == LDLM_FLOCK) in ldlm_pool_del()
Dldlm_flock.c139 struct ldlm_resource *res = req->l_resource; in ldlm_process_flock_lock()
Dldlm_resource.c1281 int type = lock->l_resource->lr_type; in ldlm_resource_unlink_lock()
1283 check_res_locked(lock->l_resource); in ldlm_resource_unlink_lock()
/drivers/staging/lustre/lustre/include/
Dlustre_dlm.h610 struct ldlm_resource *l_resource; member
888 return lock->l_resource->lr_type == LDLM_IBITS && in ldlm_has_layout()
907 return ldlm_res_to_ns(lock->l_resource); in ldlm_lock_to_ns()
919 return &lock->l_resource->lr_ns_bucket->nsb_at_estimate; in ldlm_lock_to_ns_at()
/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()
1012 &lock->l_resource->lr_name), in mdc_finish_intent_lock()
1014 PLDLMRES(lock->l_resource), PFID(&mdt_body->fid1)); in mdc_finish_intent_lock()
Dmdc_request.c2249 if (lock->l_resource->lr_type != LDLM_IBITS) in mdc_cancel_for_recovery()
/drivers/staging/lustre/lustre/llite/
Dllite_lib.c1010 if (lock->l_resource->lr_lvb_inode) { in ll_inode_from_resource_lock()
1013 lli = ll_i2info(lock->l_resource->lr_lvb_inode); in ll_inode_from_resource_lock()
1015 inode = igrab(lock->l_resource->lr_lvb_inode); in ll_inode_from_resource_lock()
1017 inode = lock->l_resource->lr_lvb_inode; in ll_inode_from_resource_lock()
1020 lock->l_resource->lr_lvb_inode, in ll_inode_from_resource_lock()
Dnamei.c195 &lock->l_resource->lr_name)) { in ll_md_blocking_ast()
/drivers/staging/lustre/lustre/mgc/
Dmgc_request.c778 PLDLMRES(lock->l_resource), in mgc_blocking_ast()
779 (char *)&lock->l_resource->lr_name.name[0]); in mgc_blocking_ast()
/drivers/staging/lustre/lustre/osc/
Dosc_request.c2030 LASSERT(lock->l_resource->lr_type == einfo->ei_type); in osc_set_lock_data_with_check()
3076 check_res_locked(lock->l_resource); in osc_cancel_for_recovery()
3084 if (lock->l_resource->lr_type == LDLM_EXTENT && in osc_cancel_for_recovery()
/drivers/staging/lustre/lustre/ptlrpc/
Dwiretest.c2996 LASSERTF((int)offsetof(struct ldlm_lock_desc, l_resource) == 0, "found %lld\n", in lustre_assert_wire_constants()
2997 (long long)(int)offsetof(struct ldlm_lock_desc, l_resource)); in lustre_assert_wire_constants()
2998 LASSERTF((int)sizeof(((struct ldlm_lock_desc *)0)->l_resource) == 40, "found %lld\n", in lustre_assert_wire_constants()
2999 (long long)(int)sizeof(((struct ldlm_lock_desc *)0)->l_resource)); in lustre_assert_wire_constants()
Dpack_generic.c2012 lustre_swab_ldlm_resource_desc(&l->l_resource); in lustre_swab_ldlm_lock_desc()
/drivers/staging/lustre/lustre/include/lustre/
Dlustre_idl.h2777 struct ldlm_resource_desc l_resource; member
/drivers/staging/lustre/lustre/lov/
Dlov_obd.c1969 struct ldlm_res_id *res_id = &data->lock->l_resource->lr_name; in lov_get_info()