From ee62631bb855a5389450710ac8f68e9ff455ab83 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 31 May 2005 06:41:53 +0000 Subject: [PATCH] b=6403 - revert wrong fix back --- lustre/mds/mds_open.c | 2 -- lustre/mds/mds_unlink_open.c | 1 - 2 files changed, 3 deletions(-) diff --git a/lustre/mds/mds_open.c b/lustre/mds/mds_open.c index 645d2aa..57256fe 100644 --- a/lustre/mds/mds_open.c +++ b/lustre/mds/mds_open.c @@ -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); - if (last_orphan && unlink_orphan) - mds_inode_unset_orphan(inode); UP_WRITE_I_ALLOC_SEM(inode); /* this is half of the actual "close" */ diff --git a/lustre/mds/mds_unlink_open.c b/lustre/mds/mds_unlink_open.c index a3d8837..0e361b5 100644 --- a/lustre/mds/mds_unlink_open.c +++ b/lustre/mds/mds_unlink_open.c @@ -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); } - 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) { -- 1.8.3.1