From: nikita Date: Wed, 26 Apr 2006 15:11:45 +0000 (+0000) Subject: move lu_attr from lu_context to mdt_thread_info X-Git-Tag: v1_8_0_110~486^2~1928 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=54094b3551f6cd818b98ad872cc9d22c54f262dc;p=fs%2Flustre-release.git move lu_attr from lu_context to mdt_thread_info --- diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index 9aed555..e891f88 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -203,10 +203,10 @@ static int mdt_getattr(struct mdt_thread_info *info, struct md_object *next = mdt_object_child(info->mti_object); result = next->mo_ops->moo_attr_get(info->mti_ctxt, next, - &info->mti_ctxt->lc_attr); + &info->mti_attr); if (result == 0) { body = lustre_msg_buf(req->rq_repmsg, 0, size); - mdt_pack_attr2body(body, &info->mti_ctxt->lc_attr); + mdt_pack_attr2body(body, &info->mti_attr); body->fid1 = *mdt_object_fid(info->mti_object); } } diff --git a/lustre/mdt/mdt_internal.h b/lustre/mdt/mdt_internal.h index abb225d..9435ed8 100644 --- a/lustre/mdt/mdt_internal.h +++ b/lustre/mdt/mdt_internal.h @@ -150,6 +150,10 @@ struct mdt_thread_info { */ struct mdt_object *mti_object; /* + * Object attributes. + */ + struct lu_attr mti_attr; + /* * Additional fail id that can be set by handler. Passed to * target_send_reply(). */