ocfs2: Initialize the bktcnt variable properly, and call it bucket_count

Signed-off-by: Joel Becker <joel.becker@oracle.com>
This commit is contained in:
Joel Becker 2010-09-15 17:00:58 -07:00
parent c0e1a3e80d
commit 93f3b86fb1

View File

@ -493,7 +493,7 @@ static int debug_mle_print(struct dlm_ctxt *dlm, struct debug_buffer *db)
struct hlist_head *bucket; struct hlist_head *bucket;
struct hlist_node *list; struct hlist_node *list;
int i, out = 0; int i, out = 0;
unsigned long total = 0, longest = 0, bktcnt; unsigned long total = 0, longest = 0, bucket_count = 0;
out += snprintf(db->buf + out, db->len - out, out += snprintf(db->buf + out, db->len - out,
"Dumping MLEs for Domain: %s\n", dlm->name); "Dumping MLEs for Domain: %s\n", dlm->name);
@ -505,13 +505,13 @@ static int debug_mle_print(struct dlm_ctxt *dlm, struct debug_buffer *db)
mle = hlist_entry(list, struct dlm_master_list_entry, mle = hlist_entry(list, struct dlm_master_list_entry,
master_hash_node); master_hash_node);
++total; ++total;
++bktcnt; ++bucket_count;
if (db->len - out < 200) if (db->len - out < 200)
continue; continue;
out += dump_mle(mle, db->buf + out, db->len - out); out += dump_mle(mle, db->buf + out, db->len - out);
} }
longest = max(longest, bktcnt); longest = max(longest, bucket_count);
bktcnt = 0; bucket_count = 0;
} }
spin_unlock(&dlm->master_lock); spin_unlock(&dlm->master_lock);