diff options
author | Sunil Mushran <sunil.mushran@oracle.com> | 2009-02-26 18:00:44 -0500 |
---|---|---|
committer | Mark Fasheh <mfasheh@suse.com> | 2009-04-03 14:39:21 -0400 |
commit | 6800791ab773453bdec337efb3f0cec6557f3bb3 (patch) | |
tree | c4f678c75d17aae11eae6e71d16962c7526da194 /fs/ocfs2/dlm/dlmcommon.h | |
parent | 2041d8fdcec7603401829f60810c1dbd5e96c043 (diff) |
ocfs2/dlm: Improve lockres counts
This patch replaces the lockres counts that tracked the number number of
locally and remotely mastered lockres' with a current and total count. The
total count is the number of lockres' that have been created since the dlm
domain was created.
The number of locally and remotely mastered counts can be computed using
the locking_state output.
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/dlm/dlmcommon.h')
-rw-r--r-- | fs/ocfs2/dlm/dlmcommon.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs/ocfs2/dlm/dlmcommon.h b/fs/ocfs2/dlm/dlmcommon.h index 67b3447a292e..e5026ce862ad 100644 --- a/fs/ocfs2/dlm/dlmcommon.h +++ b/fs/ocfs2/dlm/dlmcommon.h | |||
@@ -159,9 +159,8 @@ struct dlm_ctxt | |||
159 | /* these give a really vague idea of the system load */ | 159 | /* these give a really vague idea of the system load */ |
160 | atomic_t mle_tot_count[DLM_MLE_NUM_TYPES]; | 160 | atomic_t mle_tot_count[DLM_MLE_NUM_TYPES]; |
161 | atomic_t mle_cur_count[DLM_MLE_NUM_TYPES]; | 161 | atomic_t mle_cur_count[DLM_MLE_NUM_TYPES]; |
162 | atomic_t local_resources; | 162 | atomic_t res_tot_count; |
163 | atomic_t remote_resources; | 163 | atomic_t res_cur_count; |
164 | atomic_t unknown_resources; | ||
165 | 164 | ||
166 | struct dlm_debug_ctxt *dlm_debug_ctxt; | 165 | struct dlm_debug_ctxt *dlm_debug_ctxt; |
167 | struct dentry *dlm_debugfs_subroot; | 166 | struct dentry *dlm_debugfs_subroot; |