Whamcloud - gitweb
move lu_attr from lu_context to mdt_thread_info
authornikita <nikita>
Wed, 26 Apr 2006 15:11:45 +0000 (15:11 +0000)
committernikita <nikita>
Wed, 26 Apr 2006 15:11:45 +0000 (15:11 +0000)
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_internal.h

index 9aed555..e891f88 100644 (file)
@@ -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);
                 }
         }
index abb225d..9435ed8 100644 (file)
@@ -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().
          */