Whamcloud - gitweb
get rid of setting stripe info of parent inode in mds_create_objects. which will...
authorwangdi <wangdi>
Mon, 14 Jun 2004 14:37:45 +0000 (14:37 +0000)
committerwangdi <wangdi>
Mon, 14 Jun 2004 14:37:45 +0000 (14:37 +0000)
lustre/mds/mds_open.c

index 3112bc0..c170d5e 100644 (file)
@@ -389,22 +389,7 @@ static int mds_create_objects(struct ptlrpc_request *req, int offset,
                                            0, &lsm, rec->ur_eadata);
                         if (rc)
                                 GOTO(out_oa, rc);
-                } else {
-                        OBD_ALLOC(lmm, mds->mds_max_mdsize);
-                        if (lmm == NULL)
-                                GOTO(out_oa, rc = -ENOMEM);
-                                                                                                                                                                                                     
-                        lmm_size = mds->mds_max_mdsize;
-                        rc = mds_get_md(obd, dchild->d_parent->d_inode,
-                                        lmm, &lmm_size, 1);
-                        if (rc > 0)
-                                rc = obd_iocontrol(OBD_IOC_LOV_SETSTRIPE,
-                                                   mds->mds_osc_exp,
-                                                   0, &lsm, lmm);
-                        OBD_FREE(lmm, mds->mds_max_mdsize);
-                        if (rc)
-                                GOTO(out_oa, rc);
-                }
+                } 
                 LASSERT(oa->o_gr >= FILTER_GROUP_FIRST_MDS);
                 rc = obd_create(mds->mds_osc_exp, oa, &lsm, &oti);
                 if (rc) {