Whamcloud - gitweb
b=6403
authoralex <alex>
Tue, 31 May 2005 06:41:53 +0000 (06:41 +0000)
committeralex <alex>
Tue, 31 May 2005 06:41:53 +0000 (06:41 +0000)
 - revert wrong fix back

lustre/mds/mds_open.c
lustre/mds/mds_unlink_open.c

index 645d2aa..57256fe 100644 (file)
@@ -1434,8 +1434,6 @@ int mds_mfd_close(struct ptlrpc_request *req, int offset,
 
         last_orphan = mds_orphan_open_dec_test(inode) &&
                 mds_inode_is_orphan(inode);
 
         last_orphan = mds_orphan_open_dec_test(inode) &&
                 mds_inode_is_orphan(inode);
-        if (last_orphan && unlink_orphan)
-                mds_inode_unset_orphan(inode);
         UP_WRITE_I_ALLOC_SEM(inode);
 
         /* this is half of the actual "close" */
         UP_WRITE_I_ALLOC_SEM(inode);
 
         /* this is half of the actual "close" */
index a3d8837..0e361b5 100644 (file)
@@ -242,7 +242,6 @@ int mds_cleanup_orphans(struct obd_device *obd)
                         CWARN("orphan %s re-opened during recovery\n", d_name);
                         GOTO(next, rc = 0);
                 }
                         CWARN("orphan %s re-opened during recovery\n", d_name);
                         GOTO(next, rc = 0);
                 }
-                mds_inode_unset_orphan(child_inode);
                 UP_READ_I_ALLOC_SEM(child_inode);
                 rc = mds_unlink_orphan(obd, dchild, child_inode, pending_dir);
                 if (rc == 0) {
                 UP_READ_I_ALLOC_SEM(child_inode);
                 rc = mds_unlink_orphan(obd, dchild, child_inode, pending_dir);
                 if (rc == 0) {