oom_kill: don't call for int_sqrt(0)
authorCyrill Gorcunov <gorcunov@gmail.com>
Tue, 31 Mar 2009 22:19:27 +0000 (15:19 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Apr 2009 15:59:11 +0000 (08:59 -0700)
commita12888f772dab4bf5e6f73668dc4f5f6026a7014
tree6a6113899ff39e58993280bb831a813a43a8e1e1
parentd086817dc0d42f1be8db4138233d33e1dd16a956
oom_kill: don't call for int_sqrt(0)

There is no need to call for int_sqrt if argument is 0.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: Christoph Lameter <cl@linux-foundation.org>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/oom_kill.c