Whamcloud - gitweb
Fit for the changing of mdo_link interface.
authorfanyong <fanyong>
Sat, 2 Sep 2006 14:50:38 +0000 (14:50 +0000)
committerfanyong <fanyong>
Sat, 2 Sep 2006 14:50:38 +0000 (14:50 +0000)
lustre/cmm/cmm_object.c
lustre/mdt/mdt_reint.c

index 7cabd90..5f00f11 100644 (file)
@@ -382,12 +382,13 @@ static int cml_create_data(const struct lu_context *ctx,
 }
 
 static int cml_link(const struct lu_context *ctx, struct md_object *mo_p,
-                    struct md_object *mo_s, const char *name)
+                    struct md_object *mo_s, const char *name,
+                    struct md_attr *ma)
 {
         int rc;
         ENTRY;
-        rc = mdo_link(ctx, md_object_next(mo_p),
-                      md_object_next(mo_s), name);
+        rc = mdo_link(ctx, md_object_next(mo_p), md_object_next(mo_s),
+                      name, ma);
         RETURN(rc);
 }
 
@@ -680,7 +681,8 @@ static int cmr_create(const struct lu_context *ctx, struct md_object *mo_p,
 }
 
 static int cmr_link(const struct lu_context *ctx, struct md_object *mo_p,
-                    struct md_object *mo_s, const char *name)
+                    struct md_object *mo_s, const char *name,
+                    struct md_attr *ma)
 {
         int rc;
         ENTRY;
index 23776e3..f363a14 100644 (file)
@@ -309,6 +309,7 @@ static int mdt_reint_link(struct mdt_thread_info *info)
 {
         struct mdt_reint_record *rr = &info->mti_rr;
         struct ptlrpc_request   *req = mdt_info_req(info);
+        struct md_attr          *ma = &info->mti_attr;
         struct mdt_object       *ms;
         struct mdt_object       *mp;
         struct mdt_lock_handle  *lhs;
@@ -350,7 +351,7 @@ static int mdt_reint_link(struct mdt_thread_info *info)
                        OBD_FAIL_MDS_REINT_LINK_WRITE);
 
         rc = mdo_link(info->mti_ctxt, mdt_object_child(mp),
-                      mdt_object_child(ms), rr->rr_name);
+                      mdt_object_child(ms), rr->rr_name, ma);
         GOTO(out_unlock_target, rc);
 
 out_unlock_target: