Whamcloud - gitweb
LU-7263 mdt: put mnew in mdt_reint_rename_internal()
[fs/lustre-release.git] / lustre / mdt / mdt_reint.c
index 7b4af4a..430900f 100644 (file)
@@ -1851,7 +1851,7 @@ static int mdt_reint_rename_internal(struct mdt_thread_info *info,
                        LASSERT(repbody != NULL);
                        repbody->mbo_fid1 = *new_fid;
                        repbody->mbo_valid |= (OBD_MD_FLID | OBD_MD_MDS);
-                       GOTO(out_put_old, rc = -EXDEV);
+                       GOTO(out_put_new, rc = -EXDEV);
                }
                /* Before locking the target dir, check we do not replace
                 * a dir with a non-dir, otherwise it may deadlock with