From fe568b49533ace5795f631d1ebaddc00d1c0a2ba Mon Sep 17 00:00:00 2001 From: tappro Date: Mon, 11 Sep 2006 07:47:12 +0000 Subject: [PATCH] small fixes --- lustre/mdd/mdd_internal.h | 22 ++++++++++++---------- lustre/mdd/mdd_lov.c | 4 ++-- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/lustre/mdd/mdd_internal.h b/lustre/mdd/mdd_internal.h index 5a21424..db94be7 100644 --- a/lustre/mdd/mdd_internal.h +++ b/lustre/mdd/mdd_internal.h @@ -28,6 +28,7 @@ #define _MDD_INTERNAL_H #include + #include #include @@ -69,15 +70,15 @@ struct orph_key { }; struct mdd_thread_info { - struct txn_param mti_param; - struct lu_fid mti_fid; - struct lu_attr mti_la; - struct md_attr mti_ma; - struct lu_attr mti_la_for_fix; - struct lov_mds_md mti_lmm; - struct obd_info mti_oi; - struct orph_key mti_orph_key; - struct obd_trans_info mti_oti; + struct txn_param mti_param; + struct lu_fid mti_fid; + struct lu_attr mti_la; + struct md_attr mti_ma; + struct lu_attr mti_la_for_fix; + struct lov_mds_md mti_lmm; + struct obd_info mti_oi; + struct orph_key mti_orph_key; + struct obd_trans_info mti_oti; }; int mdd_init_obd(const struct lu_context *ctxt, struct mdd_device *mdd, @@ -93,7 +94,8 @@ int mdd_lov_create(const struct lu_context *ctxt, struct mdd_device *mdd, struct mdd_object *parent, struct mdd_object *child, struct lov_mds_md **lmm, int *lmm_size, const struct md_create_spec *spec, struct lu_attr *la); - +void mdd_lov_create_finish(const struct lu_context *ctxt, + struct mdd_device *mdd, int rc); int mdd_get_md(const struct lu_context *ctxt, struct mdd_object *obj, void *md, int *md_size, const char *name); int mdd_get_md_locked(const struct lu_context *ctxt, struct mdd_object *obj, diff --git a/lustre/mdd/mdd_lov.c b/lustre/mdd/mdd_lov.c index b72d1a5..6ad425b 100644 --- a/lustre/mdd/mdd_lov.c +++ b/lustre/mdd/mdd_lov.c @@ -306,7 +306,7 @@ int mdd_lov_set_md(const struct lu_context *ctxt, struct mdd_object *pobj, rc = mdd_lov_set_dir_md(ctxt, child, lmmp, lmm_size, handle); } } - CDEBUG(D_INFO, "Set lov md %p size %d for fid "DFID" rc%d\n", + CDEBUG(D_INFO, "Set lov md %p size %d for fid "DFID" rc %d\n", lmmp, lmm_size, PFID(mdo2fid(child)), rc); RETURN(rc); } @@ -349,7 +349,7 @@ static void mdd_lov_objid_free(const struct lu_context *ctxt, info->mti_oti.oti_objid = NULL; } -void inline mdd_lov_create_finish(const struct lu_context *ctxt, +void mdd_lov_create_finish(const struct lu_context *ctxt, struct mdd_device *mdd, int rc) { struct mdd_thread_info *info = mdd_ctx_info(ctxt); -- 1.8.3.1