From: braam Date: Mon, 24 Jun 2002 06:11:21 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: 0.4.2~51 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=739eccb4b4df5285db1423a12db13ba1b3890caf;p=fs%2Flustre-release.git *** empty log message *** --- diff --git a/lustre/mdc/mdc_request.c b/lustre/mdc/mdc_request.c index 2273bad..f0dddef 100644 --- a/lustre/mdc/mdc_request.c +++ b/lustre/mdc/mdc_request.c @@ -124,7 +124,7 @@ int mdc_getattr(struct obd_conn *conn, return rc; } -static int mdc_lock_callback(struct ldlm_lock *lock, struct ldlm_lock *new, +static int mdc_lock_callback(struct lustre_handle *lockh, struct ldlm_lock_desc *desc, void *data, int data_len, struct ptlrpc_request **req) { @@ -132,7 +132,7 @@ static int mdc_lock_callback(struct ldlm_lock *lock, struct ldlm_lock *new, struct inode *inode = data; ENTRY; - if (new == NULL) { + if (desc == NULL) { /* Completion AST. Do nothing. */ RETURN(0); } @@ -151,7 +151,7 @@ static int mdc_lock_callback(struct ldlm_lock *lock, struct ldlm_lock *new, invalidate_inode_pages(inode); } - rc = ldlm_cli_cancel(lock->l_client, lock); + rc = ldlm_cli_cancel(lockh); if (rc < 0) { CERROR("ldlm_cli_cancel: %d\n", rc); LBUG();