Home
last modified time | relevance | path

Searched refs:ergo (Results 1 – 22 of 22) sorted by relevance

/drivers/staging/lustre/lustre/osc/
Dosc_lock.c96 if (ergo(osc_lock_is_lockless(ols), in osc_lock_invariant()
103 if (! ergo(olock != NULL, handle_used)) in osc_lock_invariant()
106 if (! ergo(olock != NULL, in osc_lock_invariant()
110 if (! ergo(handle_used, in osc_lock_invariant()
111 ergo(lock != NULL && olock != NULL, lock == olock) && in osc_lock_invariant()
112 ergo(lock == NULL, olock == NULL))) in osc_lock_invariant()
118 if (! ergo(ols->ols_state == OLS_CANCELLED, in osc_lock_invariant()
125 if (! ergo(olock != NULL && ols->ols_state < OLS_CANCELLED, in osc_lock_invariant()
129 if (! ergo(ols->ols_state == OLS_GRANTED, in osc_lock_invariant()
977 LASSERT(ergo(ols->ols_glimpse, !osc_lock_is_lockless(ols))); in osc_lock_to_lockless()
[all …]
Dosc_cache.c809 EASSERT(ergo(rc == 0, ext->oe_state == OES_RPC), ext); in osc_extent_finish()
978 EASSERTF(ergo(ext->oe_start >= trunc_index + !!partial, in osc_extent_truncate()
2280 LASSERT(ergo(grants > 0, grants >= tmp)); in osc_queue_async_io()
2306 LASSERT(ergo(rc == 0, ext != NULL)); in osc_queue_async_io()
2746 EASSERT(ergo(ext->oe_state == OES_CACHE, in osc_cache_wait_range()
2748 EASSERT(ergo(ext->oe_state == OES_ACTIVE, in osc_cache_wait_range()
2843 LASSERT(ergo(!discard, list_empty(&discard_list))); in osc_cache_writeback_range()
Dosc_io.c777 LASSERT(ergo(opg->ops_srvlock, olck->ols_lock == NULL)); in osc_req_attr_set()
Dosc_page.c470 LASSERT(ergo(rc == 0, opg->ops_transfer_pinned == 0)); in osc_page_cancel()
Dosc_request.c1339 (ergo(i == 0, poff + pg->count == PAGE_CACHE_SIZE) && in osc_brw_prep_request()
1340 ergo(i > 0 && i < page_count - 1, in osc_brw_prep_request()
1342 ergo(i == page_count - 1, poff == 0)), in osc_brw_prep_request()
/drivers/staging/lustre/lustre/obdclass/
Dcl_page.c384 ergo(page != NULL, in cl_page_find0()
485 ergo(parent != NULL, parent->cp_child == pg) && in cl_page_invariant()
486 ergo(child != NULL, child->cp_parent == pg) && in cl_page_invariant()
487 ergo(child != NULL, pg->cp_obj != child->cp_obj) && in cl_page_invariant()
488 ergo(parent != NULL, pg->cp_obj != parent->cp_obj) && in cl_page_invariant()
489 ergo(owner != NULL && parent != NULL, in cl_page_invariant()
491 ergo(owner != NULL && child != NULL, in cl_page_invariant()
497 ergo(pg->cp_state < CPS_FREEING && pg->cp_type == CPT_CACHEABLE, in cl_page_invariant()
668 LASSERT(ergo(page, page->cp_type == CPT_CACHEABLE)); in cl_vmpage_page()
895 PINVRNT(env, pg, ergo(result == 0, cl_page_invariant(pg))); in cl_page_own0()
[all …]
Dcl_lock.c79 return ergo(lock->cll_state == CLS_FREEING, lock->cll_holds == 0) && in cl_lock_invariant_trusted()
1273 LASSERT(ergo(result == 0 && !(enqflags & CEF_AGL), in cl_enqueue_locked()
1299 LASSERT(ergo(result == 0, lock->cll_state == CLS_ENQUEUED || in cl_enqueue()
1497 LASSERT(ergo(result == 0, lock->cll_state == CLS_HELD)); in cl_wait()
1728 LASSERT(ergo(cl_lock_nesting(lock) == CNL_TOP, in cl_lock_delete()
1900 KLASSERT(ergo(page->cp_type == CPT_CACHEABLE, in discard_cb()
1902 KLASSERT(ergo(page->cp_type == CPT_CACHEABLE, in discard_cb()
1979 LASSERT(ergo(!cancel, in cl_locks_prune()
Dcl_object.c626 LASSERT(ergo(cle, cle->ce_magic == &cl_env_init0)); in cl_env_fetch()
828 LASSERT(ergo(refcheck != NULL, cle->ce_ref == *refcheck)); in cl_env_put()
Dcl_io.c95 ergo(io->ci_owned_nr > 0, io->ci_state == CIS_IO_GOING || in cl_io_invariant()
140 LASSERT(ergo(io->ci_ignore_layout || !io->ci_verify_layout, in cl_io_fini()
888 LASSERT(ergo(result != 0, list_empty(&queue->c2_qout.pl_pages))); in cl_io_submit_rw()
/drivers/staging/lustre/lustre/ptlrpc/
Dptlrpc_internal.h170 LASSERT(ergo(hp, nrs_svcpt_has_hp(svcpt))); in nrs_svcpt2nrs()
Dnrs.c542 LASSERT(ergo(nrq != NULL, nrs_request_policy(nrq) == policy)); in nrs_request_get()
1129 LASSERT(ergo(conf->nc_compat == nrs_policy_compat_one, in ptlrpc_nrs_policy_register()
1131 LASSERT(ergo((conf->nc_flags & PTLRPC_NRS_FL_REG_EXTERN) != 0, in ptlrpc_nrs_policy_register()
/drivers/staging/lustre/lustre/lov/
Dlov_page.c60 return ergo(sub != NULL, in lov_page_invariant()
Dlov_object.c119 LASSERT(ergo(!IS_ERR(o), o->lo_dev->ld_type == &lovsub_device_type)); in lov_sub_find()
/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_private.h447 #define ergo(a, b) (!(a) || (b)) macro
/drivers/staging/lustre/lustre/llite/
Dllite_mmap.c257 LASSERT(ergo(result == 0, PageLocked(vmpage))); in ll_page_mkwrite0()
Dvvp_page.c301 LASSERT(ergo(pg->cp_sync_io != NULL, PageLocked(vmpage))); in vvp_page_completion_write()
/drivers/staging/lustre/lustre/libcfs/
Dhash.c1040 LASSERT(ergo((flags & CFS_HASH_REHASH) == 0, cur_bits == max_bits)); in cfs_hash_create()
1041 LASSERT(ergo((flags & CFS_HASH_REHASH) != 0, in cfs_hash_create()
1043 LASSERT(ergo((flags & CFS_HASH_REHASH_KEY) != 0, in cfs_hash_create()
/drivers/staging/lustre/lustre/include/
Dlu_object.h397 return ergo(d != NULL, d->ld_type->ldt_tags & LU_DEVICE_MD); in lu_device_is_md()
Ddt_object.h667 return ergo(d != NULL, d->ld_type->ldt_tags & LU_DEVICE_DT); in lu_device_is_dt()
724 LASSERT(ergo(o != NULL, lu_device_is_dt(o->lo_dev))); in lu2dt_obj()
Dobd_support.h767 LASSERT(ergo((type) != GFP_ATOMIC, !in_interrupt())); \
Dobd_class.h941 LASSERT(ergo(data != NULL, (data->ocd_connect_flags & ocf) == in obd_connect()
963 LASSERT(ergo(d != NULL, in obd_reconnect()
/drivers/staging/lustre/lustre/ldlm/
Dldlm_request.c531 LASSERTF(ergo(lvb_len != 0, lvb_len == lock->l_lvb_len), in ldlm_cli_enqueue_fini()
950 LASSERT(ergo(LIBLUSTRE_CLIENT, einfo->ei_type != LDLM_EXTENT || in ldlm_cli_enqueue()