Searched refs:cld_mode (Results 1 – 13 of 13) sorted by relevance
/drivers/staging/lustre/lustre/lov/ |
D | lovsub_lock.c | 202 LASSERT(cl_lock_mode_match(d->cld_mode, parent_descr->cld_mode)); in lov_sublock_modify() 208 pd->cld_mode = parent_descr->cld_mode; in lov_sublock_modify() 232 LASSERT(cl_lock_mode_match(d->cld_mode, in lovsub_lock_modify() 233 s->cls_lock->cll_descr.cld_mode)); in lovsub_lock_modify()
|
D | lov_lock.c | 342 descr->cld_mode = parent->cll_descr.cld_mode; in lov_lock_sub_init() 384 dying = (sublock->cll_descr.cld_mode == CLM_PHANTOM || in lov_sublock_release() 385 sublock->cll_descr.cld_mode == CLM_GROUP || in lov_sublock_release() 872 subneed->cld_mode = need->cld_mode; 939 subd->cld_mode = descr->cld_mode; in lov_lock_stripe_is_matching() 977 if (need->cld_mode == CLM_GROUP) in lov_lock_fits_into() 990 !cl_io_is_append(io) && need->cld_mode != CLM_PHANTOM) in lov_lock_fits_into()
|
/drivers/staging/lustre/lustre/osc/ |
D | osc_lock.c | 417 descr->cld_mode = osc_ldlm2cl_lock(dlmlock->l_granted_mode); in osc_lock_granted() 910 mode = clock->cll_descr.cld_mode; in osc_lock_build_einfo() 986 qing_mode = qing->ols_cl.cls_lock->cll_descr.cld_mode; in osc_lock_compatible() 991 qed_mode = qed->ols_cl.cls_lock->cll_descr.cld_mode; in osc_lock_compatible() 1041 if (scan->cll_descr.cld_mode == CLM_GROUP) { in osc_lock_enqueue_wait() 1042 LASSERT(descr->cld_mode != CLM_GROUP || in osc_lock_enqueue_wait() 1065 if (lock->cll_descr.cld_mode == CLM_GROUP) { in osc_lock_enqueue_wait() 1113 LASSERTF(ergo(ols->ols_glimpse, lock->cll_descr.cld_mode <= CLM_READ), in osc_lock_enqueue() 1258 if (descr->cld_mode >= CLM_WRITE) { in osc_lock_flush() 1419 if (need->cld_mode == CLM_PHANTOM) { in osc_lock_fits_into()
|
D | osc_page.c | 126 descr->cld_mode = mode;
|
D | osc_cache.c | 647 LASSERT(lock->cll_descr.cld_mode >= CLM_WRITE); in osc_extent_find()
|
/drivers/staging/lustre/lustre/lclient/ |
D | glimpse.c | 61 .cld_mode = CLM_READ 115 descr->cld_mode = CLM_PHANTOM; in cl_glimpse_lock()
|
D | lcommon_cl.c | 472 desc->cld_mode = CLM_READ; in ccc_page_is_under_lock() 572 result = descr->cld_mode != CLM_WRITE; in ccc_lock_fits_into() 578 else if (need->cld_mode != descr->cld_mode) in ccc_lock_fits_into() 644 descr->cld_mode = CLM_GROUP; in ccc_io_one_lock_index() 647 descr->cld_mode = mode; in ccc_io_one_lock_index()
|
D | lcommon_misc.c | 159 descr->cld_mode = CLM_GROUP; in cl_get_grouplock()
|
/drivers/staging/lustre/lustre/obdclass/ |
D | cl_io.c | 273 if (d1->cld_mode == CLM_WRITE && d0->cld_mode != CLM_WRITE) in cl_lock_descr_merge() 274 d0->cld_mode = CLM_WRITE; in cl_lock_descr_merge() 276 if (d1->cld_mode == CLM_GROUP && d0->cld_mode != CLM_GROUP) in cl_lock_descr_merge() 277 d0->cld_mode = CLM_GROUP; in cl_lock_descr_merge() 354 scan->cill_descr.cld_mode, scan->cill_descr.cld_start, in cl_queue_merge()
|
D | cl_lock.c | 232 cl_lock_mode_match(has->cld_mode, need->cld_mode) && in cl_lock_ext_match() 233 (has->cld_mode != CLM_GROUP || has->cld_gid == need->cld_gid); in cl_lock_ext_match() 883 if (lock->cll_descr.cld_mode == CLM_PHANTOM || in cl_lock_hold_release() 884 lock->cll_descr.cld_mode == CLM_GROUP || in cl_lock_hold_release() 1780 need->cld_mode = CLM_READ; /* CLM_READ matches both READ & WRITE, but in cl_lock_at_pgoff() 1790 (scan->cll_descr.cld_mode == CLM_GROUP || in cl_lock_at_pgoff() 1873 LASSERT(lock->cll_descr.cld_mode >= CLM_WRITE); in discard_cb() 1917 cb = descr->cld_mode == CLM_READ ? check_and_discard_cb : discard_cb; in cl_lock_discard_pages()
|
/drivers/staging/lustre/lustre/include/ |
D | cl_object.h | 1343 enum cl_lock_mode cld_mode; member 1353 cl_lock_mode_name((descr)->cld_mode), (descr)->cld_mode, \
|
/drivers/staging/lustre/lustre/llite/ |
D | vvp_io.c | 258 descr->cld_mode = vvp_mode_from_vma(vma); in vvp_mmap_locks() 268 descr->cld_mode, descr->cld_start, in vvp_mmap_locks()
|
/drivers/staging/lustre/lustre/obdecho/ |
D | echo_client.c | 1052 descr->cld_mode = mode == LCK_PW ? CLM_WRITE : CLM_READ; in cl_echo_enqueue0()
|