int llog_cat_reverse_process(const struct lu_env *env,
struct llog_handle *cat_llh, llog_cb_t cb,
void *data);
-int llog_cat_init_and_process(const struct lu_env *env,
- struct llog_handle *llh);
-
/* llog_obd.c */
int llog_setup(const struct lu_env *env, struct obd_device *obd,
struct obd_llog_group *olg, int index,
LASSERT(lgh != NULL);
- rc = llog_cat_init_and_process(env, lgh);
+ rc = llog_init_handle(env, lgh, LLOG_F_IS_CAT, NULL);
if (rc != 0)
GOTO(out_close, rc);
if (rc)
GOTO(out_cleanup, rc);
- rc = llog_cat_init_and_process(env, ctxt->loc_handle);
+ rc = llog_init_handle(env, ctxt->loc_handle, LLOG_F_IS_CAT, NULL);
if (rc)
GOTO(out_close, rc);
uctxt->loc_handle->lgh_logops->lop_add = llog_cat_add_rec;
uctxt->loc_handle->lgh_logops->lop_declare_add = llog_cat_declare_add_rec;
- rc = llog_cat_init_and_process(env, uctxt->loc_handle);
+ rc = llog_init_handle(env, uctxt->loc_handle, LLOG_F_IS_CAT, NULL);
if (rc)
GOTO(out_uclose, rc);
GOTO(out_cleanup, rc);
}
- rc = llog_cat_init_and_process(env, ctxt->loc_handle);
+ rc = llog_init_handle(env, ctxt->loc_handle, LLOG_F_IS_CAT, NULL);
if (rc)
GOTO(out_close, rc);
index, POSTID(&cathandle->lgh_id.lgl_oi));
return rc;
}
-
-/* helper to initialize catalog llog and process it to cancel */
-int llog_cat_init_and_process(const struct lu_env *env,
- struct llog_handle *llh)
-{
- int rc;
-
- rc = llog_init_handle(env, llh, LLOG_F_IS_CAT, NULL);
- if (rc)
- RETURN(rc);
-
- RETURN(0);
-}
-EXPORT_SYMBOL(llog_cat_init_and_process);
LASSERT(lgh != NULL);
ctxt->loc_handle = lgh;
- rc = llog_cat_init_and_process(env, lgh);
+ rc = llog_init_handle(env, lgh, LLOG_F_IS_CAT, NULL);
if (rc)
GOTO(out_close, rc);