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
(from parent 1:
a447665
)
- removed redundant check and lock release. If name is not passed to mds_id2locked_de...
author
yury
<yury>
Wed, 26 Jan 2005 09:57:45 +0000
(09:57 +0000)
committer
yury
<yury>
Wed, 26 Jan 2005 09:57:45 +0000
(09:57 +0000)
parent lock is not taken, so we do not need to release it.
lustre/mds/handler.c
patch
|
blob
|
history
diff --git
a/lustre/mds/handler.c
b/lustre/mds/handler.c
index
6cf5d7b
..
60438d4
100644
(file)
--- a/
lustre/mds/handler.c
+++ b/
lustre/mds/handler.c
@@
-1069,10
+1069,6
@@
static int mds_getattr_lock(struct ptlrpc_request *req, int offset,
GOTO(cleanup, rc = PTR_ERR(dchild));
}
memcpy(child_lockh, parent_lockh, sizeof(parent_lockh[0]));
-#ifdef S_PDIROPS
- if (parent_lockh[1].cookie)
- ldlm_lock_decref(parent_lockh + 1, update_mode);
-#endif
}
} else {
struct ldlm_lock *granted_lock;