Skip to content

Commit

Permalink
ocfs2: Misplaced parens in unlikley
Browse files Browse the repository at this point in the history
Fix misplaced parentheses

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: Joel Becker <[email protected]>
  • Loading branch information
RoelKluin authored and jlbec committed Jul 4, 2012
1 parent 3e5d3c3 commit 16865b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/dlmglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ static void ocfs2_update_lock_stats(struct ocfs2_lock_res *res, int level,
stats->ls_gets++;
stats->ls_total += ktime_to_ns(kt);
/* overflow */
if (unlikely(stats->ls_gets) == 0) {
if (unlikely(stats->ls_gets == 0)) {
stats->ls_gets++;
stats->ls_total = ktime_to_ns(kt);
}
Expand Down

0 comments on commit 16865b7

Please sign in to comment.