Whamcloud - gitweb
b=6379
[fs/lustre-release.git] / lustre / mds / mds_unlink_open.c
index 0e361b5..a3d8837 100644 (file)
@@ -242,6 +242,7 @@ int mds_cleanup_orphans(struct obd_device *obd)
                         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) {