scoutfs: locking_state needs to include cwmode stats

This was inadvertantly left out of the main CW locking commit. We
simply need to seq_print the new fields. We add them to the end of
the line, thus preserving backwards compatibility with old versions
of the debug format.

Signed-off-by: Mark Fasheh <mfasheh@versity.com>
This commit is contained in:
Mark Fasheh
2017-11-17 17:49:48 -06:00
committed by Zach Brown
parent 457d1b54cf
commit dbb5541a0c

View File

@@ -1889,6 +1889,17 @@ static int ocfs2_dlm_seq_show(struct seq_file *m, void *v)
lock_max_exmode(lockres),
lock_refresh(lockres));
seq_printf(m, "%u\t"
"%u\t"
"%u\t"
"%llu\t"
"%u\t",
lockres->l_cw_holders,
lock_num_cwmode(lockres),
lock_num_cwmode_failed(lockres),
lock_total_cwmode(lockres),
lock_max_cwmode(lockres));
/* End the line */
seq_printf(m, "\n");
return 0;