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:
a98ef3e
)
- fixed releasing lock with correct mode in mds_id2locked_dentry()
author
yury
<yury>
Wed, 26 Jan 2005 08:37:37 +0000
(08:37 +0000)
committer
yury
<yury>
Wed, 26 Jan 2005 08:37:37 +0000
(08:37 +0000)
lustre/mds/handler.c
patch
|
blob
|
history
diff --git
a/lustre/mds/handler.c
b/lustre/mds/handler.c
index
19cc81b
..
6cf5d7b
100644
(file)
--- a/
lustre/mds/handler.c
+++ b/
lustre/mds/handler.c
@@
-283,7
+283,7
@@
struct dentry *mds_id2locked_dentry(struct obd_device *obd, struct lustre_id *id
retval = ERR_PTR(-EIO); /* XXX translate ldlm code */
#ifdef S_PDIROPS
if (lockh[1].cookie)
- ldlm_lock_decref(lockh + 1,
LCK_CW
);
+ ldlm_lock_decref(lockh + 1,
*mode
);
#endif
}