diff options
| author | Michal Nazarewicz <[email protected]> | 2014-08-06 16:05:15 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2014-08-06 18:01:16 -0700 |
| commit | 7be12fc9f8dcae7f4c9647d495bd64fc4ffb6836 (patch) | |
| tree | 0a70ae16ee1b68e4187da2471793a78a8cf6320b /tools/perf/scripts/python/bin | |
| parent | 4f7c6b49c45a398d72763d1f0e64ddff8b3653c7 (diff) | |
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 <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions