Whamcloud - gitweb
Branch: HEAD
authorwangdi <wangdi>
Wed, 20 Jul 2005 12:50:30 +0000 (12:50 +0000)
committerwangdi <wangdi>
Wed, 20 Jul 2005 12:50:30 +0000 (12:50 +0000)
remove redundant set_md in mds_reint_create and cmobd_reint_create

lustre/cmobd/cm_mds_reint.c
lustre/mds/mds_reint.c

index 73b07d5..decd816 100644 (file)
@@ -173,13 +173,6 @@ static int cmobd_reint_create(struct obd_device *obd, void *record)
         data = (char *)lustre_msg_buf(msg, 2, 0);
         datalen = data ? msg->buflens[2] : 0;       
 
-        if (datalen == 0 && S_ISREG(rec->cr_mode)) {
-                /*Get lov md from inode*/
-                mds_read_md(cmobd->cache_exp->exp_obd, &rec->cr_replayid, 
-                            &data, &datalen);
-                if (datalen > 0)
-                       alloc = 1; 
-        } 
         OBD_ALLOC(op_data, sizeof(*op_data));
         if (op_data == NULL) 
                 GOTO(exit, rc = -ENOMEM);
index 81a3573..0d3e4c2 100644 (file)
@@ -831,16 +831,6 @@ static int mds_reint_create(struct mds_update_record *rec, int offset,
                 if (IS_ERR(handle))
                         GOTO(cleanup, rc = PTR_ERR(handle));
                 rc = ll_vfs_create(dir, dchild, rec->ur_mode, NULL);
-#if 0                
-                if (rc == 0 && rec->ur_eadata) {
-                        /*for CMOBD to set lov md info when cmobd reint create*/
-                        CDEBUG(D_INFO, "set lsm %p, len %d to inode %lu \n", 
-                               rec->ur_eadata, rec->ur_eadatalen, 
-                               dchild->d_inode->i_ino); 
-                        fsfilt_set_md(obd, dchild->d_inode, handle, rec->ur_eadata,
-                                      rec->ur_eadatalen, EA_LOV);  
-                }
-#endif
                 EXIT;
                 break;
         }