Commit feefbe04 authored by wang di's avatar wang di Committed by Greg Kroah-Hartman

staging: lustre: lmv: Do not ignore ENOENT in lmv_unlink

Return correct value (rc) in lmv_unlink. In lmv_unlink,
-ENOENT might be ingored for local directory unlink.
Signed-off-by: default avatarwang di <di.wang@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-5371
Reviewed-on: http://review.whamcloud.com/11170Reviewed-by: default avatarJohn L. Hammond <john.hammond@intel.com>
Reviewed-by: default avatarAndreas Dilger <andreas.dilger@intel.com>
Reviewed-by: default avatarOleg Drokin <oleg.drokin@intel.com>
Signed-off-by: default avatarJames Simmons <jsimmons@infradead.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2e1ff451
...@@ -2641,7 +2641,7 @@ static int lmv_unlink(struct obd_export *exp, struct md_op_data *op_data, ...@@ -2641,7 +2641,7 @@ static int lmv_unlink(struct obd_export *exp, struct md_op_data *op_data,
/* Not cross-ref case, just get out of here. */ /* Not cross-ref case, just get out of here. */
if (likely(!(body->mbo_valid & OBD_MD_MDS))) if (likely(!(body->mbo_valid & OBD_MD_MDS)))
return 0; return rc;
CDEBUG(D_INODE, "%s: try unlink to another MDT for "DFID"\n", CDEBUG(D_INODE, "%s: try unlink to another MDT for "DFID"\n",
exp->exp_obd->obd_name, PFID(&body->mbo_fid1)); exp->exp_obd->obd_name, PFID(&body->mbo_fid1));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment