From 7b0a45d6ca207fc06c572e57221f6129b5a7a0a4 Mon Sep 17 00:00:00 2001 From: tappro Date: Thu, 25 Sep 2008 19:37:58 +0000 Subject: [PATCH] - avoid double l_dput() in case of version mismatch b:17172 i:shadow, rread --- lustre/mds/mds_reint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/mds/mds_reint.c b/lustre/mds/mds_reint.c index 1f382fe..05a0269 100644 --- a/lustre/mds/mds_reint.c +++ b/lustre/mds/mds_reint.c @@ -1837,12 +1837,12 @@ static int mds_reint_unlink(struct mds_update_record *rec, int offset, cleanup_phase = 1; /* dchild, dparent, locks */ + dget(dchild); /* VBR: version recovery check for parent */ rc = mds_version_get_check(req, dparent->d_inode, 0); if (rc) GOTO(cleanup_no_trans, rc); - dget(dchild); child_inode = dchild->d_inode; if (child_inode == NULL) { CDEBUG(D_INODE, "child doesn't exist (dir %lu, name %s)\n", -- 1.8.3.1