Whamcloud - gitweb
LU-8882 osd: use bydnode methods to access DMU
[fs/lustre-release.git] / lustre / lod / lod_sub_object.c
index 75271b2..b2e89c8 100644 (file)
@@ -20,7 +20,7 @@
  * GPL HEADER END
  */
 /*
- * Copyright (c) 2014, Intel Corporation.
+ * Copyright (c) 2015, Intel Corporation.
  */
 /*
  * lustre/lod/lod_sub_object.c
@@ -986,7 +986,7 @@ int lod_sub_prep_llog(const struct lu_env *env, struct lod_device *lod,
 
        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);
 
@@ -998,8 +998,8 @@ int lod_sub_prep_llog(const struct lu_env *env, struct lod_device *lod,
 
        ctxt->loc_handle = lgh;
 
-       CDEBUG(D_INFO, "%s: Init llog for %d - catid "DOSTID":%x\n",
-              obd->obd_name, index, POSTID(&cid->lci_logid.lgl_oi),
+       CDEBUG(D_INFO, "%s: init llog for index %d - catid "DFID":%x\n",
+              obd->obd_name, index, PFID(&cid->lci_logid.lgl_oi.oi_fid),
               cid->lci_logid.lgl_ogen);
 out_close:
        if (rc != 0)