zlc_setup(): handle jiffies wraparound
authorKOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Tue, 4 Mar 2008 22:28:32 +0000 (14:28 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 5 Mar 2008 00:35:10 +0000 (16:35 -0800)
commit10ed273f5016c582413dfbc468dd084957d847e1
tree58f76f68e57866c4124dc09e956103e9093c8d32
parentd9d4fcfe515d7cece1b26decd75f5d41544a287b
zlc_setup(): handle jiffies wraparound

jiffies subtraction may cause an overflow problem.  It should be using
time_after().

[akpm@linux-foundation.org: include jiffies.h]
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
Cc: Paul Jackson <pj@sgi.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c