X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fmgc%2Flibmgc.c;h=bcc3617bd5a27a2b71164c97c0c6cb917e4d61e3;hp=c639da8dea9ee04875e245835a28c88746613754;hb=911b6167a37c2dba835baab4e100dcf206c03113;hpb=b4cb26db3e6163aabf8e804578a25eaad8e3a45c diff --git a/lustre/mgc/libmgc.c b/lustre/mgc/libmgc.c index c639da8..bcc3617 100644 --- a/lustre/mgc/libmgc.c +++ b/lustre/mgc/libmgc.c @@ -53,33 +53,33 @@ static int mgc_setup(struct obd_device *obd, struct lustre_cfg *lcfg) { - int rc; - ENTRY; + int rc; + ENTRY; rc = ptlrpcd_addref(); if (rc < 0) RETURN(rc); - rc = client_obd_setup(obd, lcfg); - if (rc) - GOTO(err_decref, rc); + rc = client_obd_setup(obd, lcfg); + if (rc) + GOTO(err_decref, rc); - /* liblustre only support null flavor to MGS */ - obd->u.cli.cl_flvr_mgc.sf_rpc = SPTLRPC_FLVR_NULL; + /* liblustre only support null flavor to MGS */ + obd->u.cli.cl_flvr_mgc.sf_rpc = SPTLRPC_FLVR_NULL; - rc = obd_llog_init(obd, &obd->obd_olg, obd, NULL); - if (rc) { - CERROR("failed to setup llogging subsystems\n"); - GOTO(err_cleanup, rc); - } + rc = obd_llog_init(obd, &obd->obd_olg, obd, NULL); + if (rc) { + CERROR("failed to setup llogging subsystems\n"); + GOTO(err_cleanup, rc); + } - RETURN(rc); + RETURN(rc); err_cleanup: - client_obd_cleanup(obd); + client_obd_cleanup(obd); err_decref: - ptlrpcd_decref(); - RETURN(rc); + ptlrpcd_decref(); + RETURN(rc); } static int mgc_precleanup(struct obd_device *obd, enum obd_cleanup_stage stage)