From: Vitaly Fertman Date: Tue, 28 Dec 2010 20:52:23 +0000 (+0300) Subject: b=24378 wrong error code conversion in mdd_path_current() X-Git-Tag: 2.0.59-llnl-base X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=ddd2b0e4c4170071948e27bf4e4dcd81ef24291e;hp=05cbbca458829219135c6c36433b00d97885bba2 b=24378 wrong error code conversion in mdd_path_current() i=vitaly i=tappro --- diff --git a/lustre/mdd/mdd_object.c b/lustre/mdd/mdd_object.c index 82fe0a3..6209af9 100644 --- a/lustre/mdd/mdd_object.c +++ b/lustre/mdd/mdd_object.c @@ -372,7 +372,7 @@ static int mdd_path2fid(const struct lu_env *env, struct mdd_device *mdd, if (obj == NULL) GOTO(out, rc = -EREMOTE); if (IS_ERR(obj)) - GOTO(out, rc = -PTR_ERR(obj)); + GOTO(out, rc = PTR_ERR(obj)); /* get child fid from parent and name */ rc = mdd_lookup(env, &obj->mod_obj, lname, f, NULL); mdd_object_put(env, obj); @@ -435,7 +435,7 @@ static int mdd_path_current(const struct lu_env *env, if (mdd_obj == NULL) GOTO(out, rc = -EREMOTE); if (IS_ERR(mdd_obj)) - GOTO(out, rc = -PTR_ERR(mdd_obj)); + GOTO(out, rc = PTR_ERR(mdd_obj)); rc = lu_object_exists(&mdd_obj->mod_obj.mo_lu); if (rc <= 0) { mdd_object_put(env, mdd_obj);