From 8f089a144e8b52e7bee76b3731214449e734d51c Mon Sep 17 00:00:00 2001 From: alex <alex> Date: Fri, 12 Aug 2005 21:32:49 +0000 Subject: [PATCH] b=7272 - additional debug --- lustre/mds/mds_reint.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/mds/mds_reint.c b/lustre/mds/mds_reint.c index 9e155c694a..4070810ccf 100644 --- a/lustre/mds/mds_reint.c +++ b/lustre/mds/mds_reint.c @@ -2447,6 +2447,9 @@ cleanup: ldlm_lock_decref(parent_lockh, LCK_PW); else ptlrpc_save_lock(req, parent_lockh, LCK_PW); + if (dchild->d_inode && rc && (dchild->d_inode->i_nlink == 0 || + mds_inode_is_orphan(dchild->d_inode))) + CDEBUG(D_ERROR, "unlink, but return %d\n", rc); l_dput(dchild); l_dput(dchild); l_dput(dparent); -- GitLab