Whamcloud - gitweb
LU-2743 ptlrpc: Translate between host and network errnos
[fs/lustre-release.git] / lustre / ofd / ofd_dlm.c
index f6af542..8c43a06 100644 (file)
@@ -224,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 */
-               rep->lock_policy_res1 = -ENOENT;
+               rep->lock_policy_res1 = ptlrpc_status_hton(-ENOENT);
                goto out;
        }