diff options
Diffstat (limited to 'fs/ocfs2/dlm/dlmdebug.c')
-rw-r--r-- | fs/ocfs2/dlm/dlmdebug.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/ocfs2/dlm/dlmdebug.c b/fs/ocfs2/dlm/dlmdebug.c index 336a98e82eba..d7decaa687e6 100644 --- a/fs/ocfs2/dlm/dlmdebug.c +++ b/fs/ocfs2/dlm/dlmdebug.c | |||
@@ -763,12 +763,6 @@ static int debug_state_print(struct dlm_ctxt *dlm, struct debug_buffer *db) | |||
763 | int out = 0; | 763 | int out = 0; |
764 | struct dlm_reco_node_data *node; | 764 | struct dlm_reco_node_data *node; |
765 | char *state; | 765 | char *state; |
766 | int lres, rres, ures, tres; | ||
767 | |||
768 | lres = atomic_read(&dlm->local_resources); | ||
769 | rres = atomic_read(&dlm->remote_resources); | ||
770 | ures = atomic_read(&dlm->unknown_resources); | ||
771 | tres = lres + rres + ures; | ||
772 | 766 | ||
773 | spin_lock(&dlm->spinlock); | 767 | spin_lock(&dlm->spinlock); |
774 | 768 | ||
@@ -811,12 +805,6 @@ static int debug_state_print(struct dlm_ctxt *dlm, struct debug_buffer *db) | |||
811 | db->buf + out, db->len - out); | 805 | db->buf + out, db->len - out); |
812 | out += snprintf(db->buf + out, db->len - out, "\n"); | 806 | out += snprintf(db->buf + out, db->len - out, "\n"); |
813 | 807 | ||
814 | /* Mastered Resources Total: xxx Locally: xxx Remotely: ... */ | ||
815 | out += snprintf(db->buf + out, db->len - out, | ||
816 | "Mastered Resources Total: %d Locally: %d " | ||
817 | "Remotely: %d Unknown: %d\n", | ||
818 | tres, lres, rres, ures); | ||
819 | |||
820 | /* Lists: Dirty=Empty Purge=InUse PendingASTs=Empty ... */ | 808 | /* Lists: Dirty=Empty Purge=InUse PendingASTs=Empty ... */ |
821 | out += snprintf(db->buf + out, db->len - out, | 809 | out += snprintf(db->buf + out, db->len - out, |
822 | "Lists: Dirty=%s Purge=%s PendingASTs=%s " | 810 | "Lists: Dirty=%s Purge=%s PendingASTs=%s " |