[RFC 03/16] mm/highmem: make nr_free_highpages() handles all highmem zones by itself

2015-02-11 Thread Joonsoo Kim
nr_free_highpages() manually add statistics per each highmem zone and return total value for them. Whenever we add a new highmem zone, we need to consider this function and it's really troublesome. Make it handles all highmem zones by itself. Signed-off-by: Joonsoo Kim --- mm/highmem.c | 12

[RFC 03/16] mm/highmem: make nr_free_highpages() handles all highmem zones by itself

2015-02-11 Thread Joonsoo Kim
nr_free_highpages() manually add statistics per each highmem zone and return total value for them. Whenever we add a new highmem zone, we need to consider this function and it's really troublesome. Make it handles all highmem zones by itself. Signed-off-by: Joonsoo Kim iamjoonsoo@lge.com ---