[PATCH 02/24] mm: update_lru_size do the __mod_zone_page_state

2015-02-20 Thread Hugh Dickins
Konstantin Khlebnikov pointed out (nearly three years ago, when lumpy reclaim was removed) that lru_size can be updated by -nr_taken once per call to isolate_lru_pages(), instead of page by page. Update it inside isolate_lru_pages(), or at its two callsites? I chose to update it at the

[PATCH 02/24] mm: update_lru_size do the __mod_zone_page_state

2015-02-20 Thread Hugh Dickins
Konstantin Khlebnikov pointed out (nearly three years ago, when lumpy reclaim was removed) that lru_size can be updated by -nr_taken once per call to isolate_lru_pages(), instead of page by page. Update it inside isolate_lru_pages(), or at its two callsites? I chose to update it at the