]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb38407f2079cdd52b8135a0d15d5cd4ac37c9cf8
tree6a6113899ff39e58993280bb831a813a43a8e1e1
parent7049cb821aeae79eb7ad4710bbada5f09fc8cab5
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