]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[GFS2] Fix a bug on i386 due to evaluation order
authorSteven Whitehouse <swhiteho@redhat.com>
Sun, 18 Mar 2007 16:05:27 +0000 (16:05 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Tue, 1 May 2007 08:10:42 +0000 (09:10 +0100)
commit420d2a1028b906f24e836e37089a6ad55ab1848f
treea0fa71778dcec08d461aba2e75b045878b483498
parent3b8249f6178cb2b68b9d683587797270125cc06a
[GFS2] Fix a bug on i386 due to evaluation order

Since gcc didn't evaluate the last two terms of the expression in
glock.c:1881 as a constant expression, it resulted in an error on
i386 due to the lack of a 64bit divide instruction. This adds some
brackets to fix the problem.

This was reported by Andrew Morton.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
fs/gfs2/glock.c