diff options
author | Jianyu Zhan <nasa4836@gmail.com> | 2014-06-05 01:10:38 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-05 01:54:11 +0200 |
commit | 4be89a34609659042ef0bf883ad76388fb5251bb (patch) | |
tree | 7a438185cb78e2c6d3aec1e64960e64188cb4afe /drivers/firewire | |
parent | include/linux/gfp.h: exclude duplicate header (diff) | |
download | linux-4be89a34609659042ef0bf883ad76388fb5251bb.tar.xz linux-4be89a34609659042ef0bf883ad76388fb5251bb.zip |
mm/vmscan.c: use DIV_ROUND_UP for calculation of zone's balance_gap and correct comments.
Currently, we use (zone->managed_pages + KSWAPD_ZONE_BALANCE_GAP_RATIO-1)
/ KSWAPD_ZONE_BALANCE_GAP_RATIO to avoid a zero gap value. It's better to
use DIV_ROUND_UP macro for neater code and clear meaning.
Besides, the gap value is calculated against the per-zone "managed pages",
not "present pages". This patch also corrects the comment and do some
rephrasing.
Signed-off-by: Jianyu Zhan <nasa4836@gmail.com>
Acked-by: Rik van Riel <riel@redhat.com>
Acked-by: Rafael Aquini <aquini@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/firewire')
0 files changed, 0 insertions, 0 deletions