]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: page_alloc: simplify drain_zone_pages by using min()
authorMichal Nazarewicz <mina86@mina86.com>
Thu, 26 Jun 2014 00:42:30 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:30 +0000 (10:42 +1000)
commitc47ad53c3edc44a50bb53c6492722725f88f97c4
tree40f89507d572445ad44c0fa2dd84175eaebf551f
parent2e7321555bba12b40f98aee14d21e2cd2c846d34
mm: page_alloc: simplify drain_zone_pages by using min()

Instead of open-coding getting minimal value of two, just use min macro.
That is why it is there for.  While changing the function also change type
of batch local variable to match type of per_cpu_pages::batch (which is
int).

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_alloc.c