summaryrefslogtreecommitdiffstats
path: root/mm/internal.h
diff options
context:
space:
mode:
authorMichal Nazarewicz2014-08-07 01:05:15 +0200
committerLinus Torvalds2014-08-07 03:01:16 +0200
commit7be12fc9f8dcae7f4c9647d495bd64fc4ffb6836 (patch)
tree0a70ae16ee1b68e4187da2471793a78a8cf6320b /mm/internal.h
parentmem-hotplug: introduce MMOP_OFFLINE to replace the hard coding -1 (diff)
downloadkernel-qcow2-linux-7be12fc9f8dcae7f4c9647d495bd64fc4ffb6836.tar.gz
kernel-qcow2-linux-7be12fc9f8dcae7f4c9647d495bd64fc4ffb6836.tar.xz
kernel-qcow2-linux-7be12fc9f8dcae7f4c9647d495bd64fc4ffb6836.zip
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> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/internal.h')
0 files changed, 0 insertions, 0 deletions