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:
9283e82
)
fix a small defect in mdt_reint_open.
author
huanghua
<huanghua>
Wed, 24 May 2006 08:13:38 +0000
(08:13 +0000)
committer
huanghua
<huanghua>
Wed, 24 May 2006 08:13:38 +0000
(08:13 +0000)
lustre/mdt/mdt_reint.c
patch
|
blob
|
history
diff --git
a/lustre/mdt/mdt_reint.c
b/lustre/mdt/mdt_reint.c
index
fe7d5ca
..
6640657
100644
(file)
--- a/
lustre/mdt/mdt_reint.c
+++ b/
lustre/mdt/mdt_reint.c
@@
-219,7
+219,7
@@
static int mdt_reint_open(struct mdt_thread_info *info)
lh,
MDS_INODELOCK_UPDATE);
if (IS_ERR(parent))
-
return PTR_ERR(parent
);
+
RETURN(PTR_ERR(parent)
);
result = mdo_lookup(info->mti_ctxt, mdt_object_child(parent),
info->mti_rr.rr_name, info->mti_rr.rr_fid2);
@@
-244,10
+244,8
@@
static int mdt_reint_open(struct mdt_thread_info *info)
}
}
- if (result)
- GOTO(out_parent, result);
-
- result = mdt_md_open(info, child);
+ if (result == 0)
+ result = mdt_md_open(info, child);
mdt_object_put(info->mti_ctxt, child);