Home
last modified time | relevance | path

Searched refs:LCK_PR (Results 1 – 17 of 17) sorted by relevance

/linux-4.1.27/drivers/staging/lustre/lustre/osc/
Dosc_cl_internal.h530 return LCK_PR; in osc_cl_lock2ldlm()
539 LASSERT(mode == LCK_PR || mode == LCK_PW || mode == LCK_GROUP); in osc_ldlm2cl_lock()
540 if (mode == LCK_PR) in osc_ldlm2cl_lock()
Dosc_request.c2289 if (einfo->ei_mode == LCK_PR) in osc_enqueue_base()
2308 ldlm_lock_addref(lockh, LCK_PR); in osc_enqueue_base()
2413 if (mode == LCK_PR) in osc_match_base()
2426 ldlm_lock_addref(lockh, LCK_PR); in osc_match_base()
2819 LCK_PR | LCK_PW, &lockh, 0); in osc_get_info()
2821 if (mode != LCK_PR) { in osc_get_info()
2822 ldlm_lock_addref(&lockh, LCK_PR); in osc_get_info()
2872 ldlm_lock_decref(&lockh, LCK_PR); in osc_get_info()
3141 (lock->l_granted_mode == LCK_PR || in osc_cancel_for_recovery()
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dlustre_lite.h76 params->lrp_lock_mode = (cmd == OBD_BRW_READ) ? LCK_PR : LCK_PW; in lustre_build_lock_params()
Dlustre_dlm.h141 #define LCK_COMPAT_PR (LCK_COMPAT_PW | LCK_PR)
143 #define LCK_COMPAT_CR (LCK_COMPAT_CW | LCK_PR | LCK_PW)
Dobd.h1021 return LCK_PR; in it_to_lock_mode()
/linux-4.1.27/drivers/staging/lustre/lustre/mdc/
Dmdc_locks.c295 mode = LCK_PR; in mdc_intent_open_pack()
300 mode = LCK_PR; in mdc_intent_open_pack()
1113 LCK_CR | LCK_CW | LCK_PR | LCK_PW, in mdc_revalidate_lock()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dxattr_cache.c303 LCK_PR); in ll_xattr_find_get_lock()
Dfile.c307 lockmode = LCK_PR; in ll_md_close()
2723 einfo.ei_mode = LCK_PR; in ll_file_flock()
2825 (LCK_CR|LCK_CW|LCK_PR|LCK_PW) : l_req_mode; in ll_have_md_lock()
3549 LCK_CR | LCK_CW | LCK_PR | LCK_PW); in ll_layout_refresh()
Dnamei.c220 case LCK_PR: in ll_md_blocking_ast()
Ddir.c354 mode = LCK_PR; in ll_get_dir_page()
Dllite_lib.c1704 LCK_PR | LCK_PW); in ll_update_inode()
/linux-4.1.27/drivers/staging/lustre/lustre/ldlm/
Dldlm_lock.c54 [LCK_PR] = "PR",
703 if (mode & (LCK_NL | LCK_CR | LCK_PR)) { in ldlm_lock_addref_internal_nolock()
767 if (mode & (LCK_NL | LCK_CR | LCK_PR)) { in ldlm_lock_decref_internal_nolock()
2123 LASSERTF((new_mode == LCK_PW && lock->l_granted_mode == LCK_PR), in ldlm_lock_convert()
Dldlm_lib.c769 [LCK_PR] = LCK_COMPAT_PR,
Dldlm_flock.c688 case LCK_PR: in ldlm_flock_completion_ast()
/linux-4.1.27/drivers/staging/lustre/lustre/obdecho/
Decho_client.c1208 rw == READ ? LCK_PR : LCK_PW, &lh.cookie, in cl_echo_object_brw()
1819 if (!(mode == LCK_PR || mode == LCK_PW)) in echo_client_enqueue()
/linux-4.1.27/drivers/staging/lustre/lustre/include/lustre/
Dlustre_idl.h2712 LCK_PR = 4, enumerator
/linux-4.1.27/drivers/staging/lustre/lustre/ptlrpc/
Dwiretest.c311 LASSERTF(LCK_PR == 4, "found %lld\n", in lustre_assert_wire_constants()
312 (long long)LCK_PR); in lustre_assert_wire_constants()