[v4][PATCH 5/6] mm: vmscan: batch shrink_page_list() locking operations

2013-05-31 Thread Dave Hansen
From: Dave Hansen changes for v2: * remove batch_has_same_mapping() helper. A local varible makes the check cheaper and cleaner * Move batch draining later to where we already know page_mapping(). This probably fixes a truncation race anyway * rename batch_for_mapping_removal ->

[v4][PATCH 5/6] mm: vmscan: batch shrink_page_list() locking operations

2013-05-31 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com changes for v2: * remove batch_has_same_mapping() helper. A local varible makes the check cheaper and cleaner * Move batch draining later to where we already know page_mapping(). This probably fixes a truncation race anyway * rename