From: Michal Nazarewicz Date: Wed, 6 Aug 2014 23:05:15 +0000 (-0700) Subject: mm: page_alloc: simplify drain_zone_pages by using min() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~137^2~173 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7be12fc9f8dcae7f4c9647d495bd64fc4ffb6836;p=pandora-kernel.git 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 Acked-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed