]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/ocfs2/dlm/dlmunlock.c
Merge branches 'pm-core', 'pm-qos', 'pm-domains' and 'pm-opp'
[linux.git] / fs / ocfs2 / dlm / dlmunlock.c
index 1082b2c3014bed10ecafb04e2b17b1585acb0275..63d701cd1e2e70a1d5962c253ca5625d418d7992 100644 (file)
@@ -251,7 +251,7 @@ static enum dlm_status dlmunlock_common(struct dlm_ctxt *dlm,
                mlog(0, "lock %u:%llu should be gone now! refs=%d\n",
                     dlm_get_lock_cookie_node(be64_to_cpu(lock->ml.cookie)),
                     dlm_get_lock_cookie_seq(be64_to_cpu(lock->ml.cookie)),
-                    atomic_read(&lock->lock_refs.refcount)-1);
+                    kref_read(&lock->lock_refs)-1);
                dlm_lock_put(lock);
        }
        if (actions & DLM_UNLOCK_CALL_AST)