From: tappro Date: Tue, 2 May 2006 20:18:10 +0000 (+0000) Subject: fix wrong parameter in mdd_object_create X-Git-Tag: v1_8_0_110~486^2~1894 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=3dbac6c03452f18eadd4fefdd67fa2cd3c28ec25;p=fs%2Flustre-release.git fix wrong parameter in mdd_object_create --- diff --git a/lustre/mdd/mdd_handler.c b/lustre/mdd/mdd_handler.c index 963c1a5..339a2a1 100644 --- a/lustre/mdd/mdd_handler.c +++ b/lustre/mdd/mdd_handler.c @@ -398,9 +398,10 @@ __mdd_object_create(struct lu_context *ctxt, struct mdd_object *obj, RETURN(rc); } -static int mdd_object_create(struct lu_context *ctxt, struct mdd_object *obj) +static int mdd_object_create(struct lu_context *ctxt, struct md_object *obj) { - struct mdd_device *mdd = mdo2mdd(&obj->mod_obj); + + struct mdd_device *mdd = mdo2mdd(obj); struct thandle *handle; int rc; ENTRY; @@ -410,7 +411,7 @@ static int mdd_object_create(struct lu_context *ctxt, struct mdd_object *obj) if (IS_ERR(handle)) RETURN(PTR_ERR(handle)); - rc = __mdd_object_create(ctxt, obj, handle); + rc = __mdd_object_create(ctxt, mdo2mddo(obj), handle); mdd_trans_stop(ctxt, mdd, handle);