summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlmglue.c
diff options
context:
space:
mode:
authorroel <roel.kluin@gmail.com>2011-12-12 23:40:51 +0100
committerJoel Becker <jlbec@evilplan.org>2012-07-04 08:27:13 +0200
commit16865b7c42fbce8a4d2b278460e387e719e289cb (patch)
tree143be668183c248d4b4108be94ac69d2a94fce89 /fs/ocfs2/dlmglue.c
parentocfs2: clear unaligned io flag when dio fails (diff)
downloadlinux-16865b7c42fbce8a4d2b278460e387e719e289cb.tar.xz
linux-16865b7c42fbce8a4d2b278460e387e719e289cb.zip
ocfs2: Misplaced parens in unlikley
Fix misplaced parentheses Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Joel Becker <jlbec@evilplan.org>
Diffstat (limited to 'fs/ocfs2/dlmglue.c')
-rw-r--r--fs/ocfs2/dlmglue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c
index 81a4cd22f80b..274529cce9c6 100644
--- a/fs/ocfs2/dlmglue.c
+++ b/fs/ocfs2/dlmglue.c
@@ -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);
}