return -ENXIO;
/* nested journal transaction */
- rc = llog_add(NULL, ctxt, &rec->cr_hdr, NULL, NULL, 0);
+ rc = llog_obd_add(NULL, ctxt, &rec->cr_hdr, NULL, NULL, 0);
llog_ctxt_put(ctxt);
return rc;
return -ENXIO;
/* nested journal transaction */
- rc = llog_add(NULL, ctxt, &rec->cr_hdr, NULL, NULL, 0);
+ rc = llog_obd_add(NULL, ctxt, &rec->cr_hdr, NULL, NULL, 0);
llog_ctxt_put(ctxt);
return rc;
rec->cur_endrec = mdd->mdd_cl.mc_index;
cfs_spin_unlock(&mdd->mdd_cl.mc_user_lock);
- rc = llog_add(NULL, ctxt, &rec->cur_hdr, NULL, NULL, 0);
+ rc = llog_obd_add(NULL, ctxt, &rec->cur_hdr, NULL, NULL, 0);
CDEBUG(D_IOCTL, "Registered changelog user %d\n", *id);
out:
/* hdr+1 is loc of data */
hdr->lrh_len -= sizeof(*hdr) + sizeof(struct llog_rec_tail);
rc = llog_write_rec(env, llh, hdr, NULL, 0, (void *)(hdr + 1),
- hdr->lrh_index);
+ hdr->lrh_index, NULL);
RETURN(rc);
}