Whamcloud - gitweb
LU-1302 llog: pass lu_env as parametr in llog functions
[fs/lustre-release.git] / lustre / obdclass / obd_config.c
index c1d87c2..da9734e 100644 (file)
@@ -1467,11 +1467,11 @@ int class_config_parse_llog(struct llog_ctxt *ctxt, char *name,
         ENTRY;
 
         CDEBUG(D_INFO, "looking up llog %s\n", name);
-        rc = llog_create(ctxt, &llh, NULL, name);
+       rc = llog_create(NULL, ctxt, &llh, NULL, name);
         if (rc)
                 RETURN(rc);
 
-        rc = llog_init_handle(llh, LLOG_F_IS_PLAIN, NULL);
+       rc = llog_init_handle(NULL, llh, LLOG_F_IS_PLAIN, NULL);
         if (rc)
                 GOTO(parse_out, rc);
 
@@ -1489,7 +1489,7 @@ int class_config_parse_llog(struct llog_ctxt *ctxt, char *name,
                 cfg->cfg_last_idx = cd.lpcd_last_idx;
 
 parse_out:
-        rc2 = llog_close(llh);
+       rc2 = llog_close(NULL, llh);
         if (rc == 0)
                 rc = rc2;
 
@@ -1567,17 +1567,17 @@ int class_config_dump_llog(struct llog_ctxt *ctxt, char *name,
 
         LCONSOLE_INFO("Dumping config log %s\n", name);
 
-        rc = llog_create(ctxt, &llh, NULL, name);
+       rc = llog_create(NULL, ctxt, &llh, NULL, name);
         if (rc)
                 RETURN(rc);
 
-        rc = llog_init_handle(llh, LLOG_F_IS_PLAIN, NULL);
+       rc = llog_init_handle(NULL, llh, LLOG_F_IS_PLAIN, NULL);
         if (rc)
                 GOTO(parse_out, rc);
 
        rc = llog_process(NULL, llh, class_config_dump_handler, cfg, NULL);
 parse_out:
-        rc2 = llog_close(llh);
+       rc2 = llog_close(NULL, llh);
         if (rc == 0)
                 rc = rc2;