Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-2743 ptlrpc: Translate between host and network errnos
[fs/lustre-release.git]
/
lustre
/
ofd
/
ofd_dlm.c
diff --git
a/lustre/ofd/ofd_dlm.c
b/lustre/ofd/ofd_dlm.c
index
c0bbd15
..
8c43a06
100644
(file)
--- a/
lustre/ofd/ofd_dlm.c
+++ b/
lustre/ofd/ofd_dlm.c
@@
-27,7
+27,7
@@
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
*
- * Copyright (c) 201
1, 2012, Whamcloud, Inc
.
+ * Copyright (c) 201
2, Intel Corporation
.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
*/
/*
* This file is part of Lustre, http://www.lustre.org/
@@
-111,6
+111,7
@@
int ofd_intent_policy(struct ldlm_namespace *ns, struct ldlm_lock **lockp,
CFS_LIST_HEAD(gl_list);
ENTRY;
CFS_LIST_HEAD(gl_list);
ENTRY;
+ lock->l_lvb_type = LVB_T_OST;
policy = ldlm_get_processing_policy(res);
LASSERT(policy != NULL);
LASSERT(req != NULL);
policy = ldlm_get_processing_policy(res);
LASSERT(policy != NULL);
LASSERT(req != NULL);
@@
-223,7
+224,7
@@
int ofd_intent_policy(struct ldlm_namespace *ns, struct ldlm_lock **lockp,
*/
if (l->l_glimpse_ast == NULL) {
/* We are racing with unlink(); just return -ENOENT */
*/
if (l->l_glimpse_ast == NULL) {
/* We are racing with unlink(); just return -ENOENT */
- rep->lock_policy_res1 =
-ENOENT
;
+ rep->lock_policy_res1 =
ptlrpc_status_hton(-ENOENT)
;
goto out;
}
goto out;
}