On 08/17/2012 03:54 AM, Dave Chinner wrote:
IOWs, it's still the same count/scan shrinker interface, just with all the LRU and shrinker bits abstracted and implemented in common code. The generic LRU abstraction is that it only knows about the list-head in the structure that is passed to it, and it passes that listhead to the per-object callbacks for the subsystem to do the specific work that is needed.
This will make it very easy to iterate over the slab object LRUs in my "reclaim from the highest score LRU" patch set. That in turn will allow us to properly balance pressure between cgroup and non-cgroup object LRUs, between the LRUs of various superblocks, etc... -- All rights reversed -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>