list_lru: get rid of ->active_nodes
authorVladimir Davydov <[email protected]>
Thu, 12 Feb 2015 22:59:04 +0000 (14:59 -0800)
committerLinus Torvalds <[email protected]>
Fri, 13 Feb 2015 02:54:09 +0000 (18:54 -0800)
commitff0b67ef5b1687692bc1fd3ce4bc3d1ff83587c7
tree9c4b001b4b814b1cfd90c195fe4b425d3342b19c
parent05257a1a3dcc196c197714b5c9a8dd35b7f6aefc
list_lru: get rid of ->active_nodes

The active_nodes mask allows us to skip empty nodes when walking over
list_lru items from all nodes in list_lru_count/walk.  However, these
functions are never called from hot paths, so it doesn't seem we need
such kind of optimization there.  OTOH, removing the mask will make it
easier to make list_lru per-memcg.

Signed-off-by: Vladimir Davydov <[email protected]>
Cc: Dave Chinner <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Greg Thelen <[email protected]>
Cc: Glauber Costa <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Tejun Heo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/list_lru.h
mm/list_lru.c