mm: setup_per_zone_inactive_ratio - do not call for int_sqrt if not needed
authorCyrill Gorcunov <gorcunov@openvz.org>
Tue, 16 Jun 2009 22:32:32 +0000 (15:32 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Jun 2009 02:47:39 +0000 (19:47 -0700)
commit5c87eada68fe5d29a5f67528f81b6e45124f579b
tree11088d75bd2132fecf70e402d4334686461aba7c
parentaf166777cf451f0373b952ce6766dc1c25385686
mm: setup_per_zone_inactive_ratio - do not call for int_sqrt if not needed

int_sqrt() returns 0 if its argument is zero so call it if only needed.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c