Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14937b0
)
- return EREMOTE in mdd_is_parent() in case of remote parent, we don't need rc <
author
tappro
<tappro>
Sat, 23 Sep 2006 14:18:30 +0000
(14:18 +0000)
committer
tappro
<tappro>
Sat, 23 Sep 2006 14:18:30 +0000
(14:18 +0000)
0 in that case
lustre/mdd/mdd_handler.c
patch
|
blob
|
history
diff --git
a/lustre/mdd/mdd_handler.c
b/lustre/mdd/mdd_handler.c
index
2c2e477
..
3ff593e
100644
(file)
--- 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);
}