In mdt_reint_rename_internal() if the mnew object is remote then put
it before returning.
Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I7a380f2d54d6546a9009c062ead7c77b8c8a88ee
Reviewed-on: http://review.whamcloud.com/16751
Tested-by: Jenkins
Reviewed-by: wangdi <di.wang@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
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