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:
1c4d448
)
- added missed rc = 0 in mdt_getattr_name_lock() for resent case.
author
yury
<yury>
Tue, 31 Oct 2006 11:21:11 +0000
(11:21 +0000)
committer
yury
<yury>
Tue, 31 Oct 2006 11:21:11 +0000
(11:21 +0000)
lustre/mdt/mdt_handler.c
patch
|
blob
|
history
diff --git
a/lustre/mdt/mdt_handler.c
b/lustre/mdt/mdt_handler.c
index
5682c55
..
3ae0025
100644
(file)
--- a/
lustre/mdt/mdt_handler.c
+++ b/
lustre/mdt/mdt_handler.c
@@
-772,7
+772,7
@@
static int mdt_getattr_name_lock(struct mdt_thread_info *info,
RETURN(rc);
}
- if (name[0] == 0) {
/* strlen(name) == 0 */
+ if (name[0] == 0) {
/* Only getattr on the child. Parent is on another node. */
mdt_set_disposition(info, ldlm_rep, DISP_LOOKUP_POS);
child = parent;
@@
-850,6
+850,7
@@
static int mdt_getattr_name_lock(struct mdt_thread_info *info,
LASSERT(fid_res_name_eq(child_fid,
&lock->l_resource->lr_name));
LDLM_LOCK_PUT(lock);
+ rc = 0;
} else {
mdt_lock_handle_init(lhc);
mdt_lock_reg_init(lhc, LCK_PR);