From ddd2b0e4c4170071948e27bf4e4dcd81ef24291e Mon Sep 17 00:00:00 2001 From: Vitaly Fertman Date: Tue, 28 Dec 2010 23:52:23 +0300 Subject: [PATCH] b=24378 wrong error code conversion in mdd_path_current() i=vitaly i=tappro --- lustre/mdd/mdd_object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 1.8.3.1