We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f86b29 commit 105ae04Copy full SHA for 105ae04
fs/ocfs2/dlmglue.c
@@ -3151,11 +3151,8 @@ static int ocfs2_dlm_seq_show(struct seq_file *m, void *v)
3151
#ifdef CONFIG_OCFS2_FS_STATS
3152
if (!lockres->l_lock_wait && dlm_debug->d_filter_secs) {
3153
now = ktime_to_us(ktime_get_real());
3154
- if (lockres->l_lock_prmode.ls_last >
3155
- lockres->l_lock_exmode.ls_last)
3156
- last = lockres->l_lock_prmode.ls_last;
3157
- else
3158
- last = lockres->l_lock_exmode.ls_last;
+ last = max(lockres->l_lock_prmode.ls_last,
+ lockres->l_lock_exmode.ls_last);
3159
/*
3160
* Use d_filter_secs field to filter lock resources dump,
3161
* the default d_filter_secs(0) value filters nothing,
0 commit comments