From: yury Date: Wed, 26 Jan 2005 09:57:45 +0000 (+0000) Subject: - removed redundant check and lock release. If name is not passed to mds_id2locked_de... X-Git-Tag: v1_7_100~1659 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=a836ef5eed5821930ec2e67eaa63e2398805250c;hp=a4476659fa6b853e2c46d8f9d4d8f4770f9fcb19 - removed redundant check and lock release. If name is not passed to mds_id2locked_dentry() parent lock is not taken, so we do not need to release it. --- diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index 6cf5d7b..60438d4 100644 --- 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;