Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/vapier...
[cascardo/linux.git] / fs / ocfs2 / dlm / dlmconvert.c
index 90803b4..29a886d 100644 (file)
@@ -128,8 +128,8 @@ static enum dlm_status __dlmconvert_master(struct dlm_ctxt *dlm,
 
        assert_spin_locked(&res->spinlock);
 
-       mlog_entry("type=%d, convert_type=%d, new convert_type=%d\n",
-                  lock->ml.type, lock->ml.convert_type, type);
+       mlog(0, "type=%d, convert_type=%d, new convert_type=%d\n",
+            lock->ml.type, lock->ml.convert_type, type);
 
        spin_lock(&lock->spinlock);
 
@@ -353,7 +353,7 @@ static enum dlm_status dlm_send_remote_convert_request(struct dlm_ctxt *dlm,
        struct kvec vec[2];
        size_t veclen = 1;
 
-       mlog_entry("%.*s\n", res->lockname.len, res->lockname.name);
+       mlog(0, "%.*s\n", res->lockname.len, res->lockname.name);
 
        memset(&convert, 0, sizeof(struct dlm_convert_lock));
        convert.node_idx = dlm->node_num;
@@ -390,7 +390,9 @@ static enum dlm_status dlm_send_remote_convert_request(struct dlm_ctxt *dlm,
                } else if (ret != DLM_NORMAL && ret != DLM_NOTQUEUED)
                        dlm_error(ret);
        } else {
-               mlog_errno(tmpret);
+               mlog(ML_ERROR, "Error %d when sending message %u (key 0x%x) to "
+                    "node %u\n", tmpret, DLM_CONVERT_LOCK_MSG, dlm->key,
+                    res->owner);
                if (dlm_is_host_down(tmpret)) {
                        /* instead of logging the same network error over
                         * and over, sleep here and wait for the heartbeat