@@ -149,7 +149,7 @@ static struct cl_page *__cl_page_alloc(struct cl_object *o)
struct cl_page *cl_page = NULL;
unsigned short bufsize = cl_object_header(o)->coh_page_bufsize;
- if (OBD_FAIL_CHECK(OBD_FAIL_LLITE_PAGE_ALLOC))
+ if (CFS_FAIL_CHECK(OBD_FAIL_LLITE_PAGE_ALLOC))
return NULL;
check:
@@ -749,7 +749,7 @@ static int __init obdclass_init(void)
/* simulate a late OOM situation now to require all
* alloc'ed/initialized resources to be freed
*/
- if (OBD_FAIL_CHECK(OBD_FAIL_OBDCLASS_MODULE_LOAD)) {
+ if (CFS_FAIL_CHECK(OBD_FAIL_OBDCLASS_MODULE_LOAD)) {
/* force error to ensure module will be unloaded/cleaned */
err = -ENOMEM;
goto cleanup_all;
@@ -456,7 +456,7 @@ int libcfs_kkuc_group_put(const struct obd_uuid *uuid, int group, void *payload)
down_write(&kg_sem);
if (unlikely(list_empty(&kkuc_groups[group])) ||
- unlikely(OBD_FAIL_CHECK(OBD_FAIL_MDS_HSM_CT_REGISTER_NET))) {
+ unlikely(CFS_FAIL_CHECK(OBD_FAIL_MDS_HSM_CT_REGISTER_NET))) {
/* no agent have fully registered, CDT will retry */
up_write(&kg_sem);
return -EAGAIN;
@@ -182,7 +182,7 @@ int llog_setup(const struct lu_env *env, struct obd_device *obd,
}
if (op->lop_setup) {
- if (OBD_FAIL_CHECK(OBD_FAIL_OBD_LLOG_SETUP))
+ if (CFS_FAIL_CHECK(OBD_FAIL_OBD_LLOG_SETUP))
rc = -EOPNOTSUPP;
else
rc = op->lop_setup(env, obd, olg, index, disk_obd);
@@ -418,7 +418,7 @@ int lu_site_purge_objects(const struct lu_env *env, struct lu_site *s,
int bnr;
unsigned int i;
- if (OBD_FAIL_CHECK(OBD_FAIL_OBD_NO_LRU))
+ if (CFS_FAIL_CHECK(OBD_FAIL_OBD_NO_LRU))
return 0;
/*
@@ -806,7 +806,7 @@ struct lu_object *lu_object_find_at(const struct lu_env *env,
*/
s = dev->ld_site;
hs = &s->ls_obj_hash;
- if (unlikely(OBD_FAIL_PRECHECK(OBD_FAIL_OBD_ZERO_NLINK_RACE)))
+ if (unlikely(CFS_FAIL_PRECHECK(OBD_FAIL_OBD_ZERO_NLINK_RACE)))
lu_site_purge(env, s, -1);
bkt = &s->ls_bkts[lu_bkt_hash(s, f)];
@@ -450,7 +450,7 @@ static int class_cleanup(struct obd_device *obd, struct lustre_cfg *lcfg)
int err = 0;
char *flag;
- OBD_RACE(OBD_FAIL_LDLM_RECOV_CLIENTS);
+ CFS_RACE(OBD_FAIL_LDLM_RECOV_CLIENTS);
if (!obd->obd_set_up) {
CERROR("Device %d not setup\n", obd->obd_minor);