From c8bac375401324b591a4c03793fccb0e1ae4b8e7 Mon Sep 17 00:00:00 2001 From: tappro Date: Sat, 23 Sep 2006 14:18:30 +0000 Subject: [PATCH] - return EREMOTE in mdd_is_parent() in case of remote parent, we don't need rc < 0 in that case --- lustre/mdd/mdd_handler.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lustre/mdd/mdd_handler.c b/lustre/mdd/mdd_handler.c index 2c2e477..3ff593e 100644 --- a/lustre/mdd/mdd_handler.c +++ b/lustre/mdd/mdd_handler.c @@ -1401,7 +1401,7 @@ static int mdd_is_parent(const struct lu_context *ctxt, if (parent == NULL) { if (pf != NULL) *pf = *pfid; - GOTO(out, rc = -EREMOTE); + GOTO(out, rc = EREMOTE); } else if (IS_ERR(parent)) GOTO(out, rc = PTR_ERR(parent)); p1 = parent; @@ -1633,8 +1633,6 @@ static int mdd_is_subdir(const struct lu_context *ctx, struct md_object *mo, RETURN(0); rc = mdd_is_parent(ctx, mdd, md2mdd_obj(mo), fid, sfid); - if (rc == -EREMOTE) - rc = EREMOTE; RETURN(rc); } -- 1.8.3.1