Whamcloud - gitweb
LU-12542 handles: discard h_owner in favour of h_ops
[fs/lustre-release.git] / lustre / ldlm / ldlm_lock.c
index 12ffa08..73d522f 100644 (file)
@@ -587,7 +587,7 @@ struct ldlm_lock *__ldlm_handle2lock(const struct lustre_handle *handle,
 
        LASSERT(handle);
 
-       lock = class_handle2object(handle->cookie, NULL);
+       lock = class_handle2object(handle->cookie, &lock_handle_ops);
        if (lock == NULL)
                RETURN(NULL);