Files
tegra-linux-noble/include/linux
Hugh Dickins fa9add641b mm/memcg: apply add/del_page to lruvec
Take lruvec further: pass it instead of zone to add_page_to_lru_list() and
del_page_from_lru_list(); and pagevec_lru_move_fn() pass lruvec down to
its target functions.

This cleanup eliminates a swathe of cruft in memcontrol.c, including
mem_cgroup_lru_add_list(), mem_cgroup_lru_del_list() and
mem_cgroup_lru_move_lists() - which never actually touched the lists.

In their place, mem_cgroup_page_lruvec() to decide the lruvec, previously
a side-effect of add, and mem_cgroup_update_lru_size() to maintain the
lru_size stats.

Whilst these are simplifications in their own right, the goal is to bring
the evaluation of lruvec next to the spin_locking of the lrus, in
preparation for a future patch.

Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-05-29 16:22:28 -07:00
..
2012-04-23 14:23:32 +03:00
2012-05-15 17:30:30 -04:00
2012-05-08 14:13:25 -07:00
2012-05-02 14:15:27 -05:00
2012-05-25 12:46:23 +05:30
2012-04-30 15:30:18 -07:00
2012-05-17 15:36:35 -04:00
2012-05-29 16:22:23 -07:00
2012-04-27 10:46:45 +08:00
2012-05-22 11:32:31 +02:00
2012-05-12 14:28:14 +02:00
2012-05-12 14:28:16 +02:00
2012-04-21 16:26:33 -04:00
2012-05-07 10:58:57 -06:00
2012-05-21 21:09:38 +02:00
2012-05-29 16:22:21 -07:00
2012-05-11 10:56:56 +01:00
2012-05-09 13:58:06 -07:00
2012-05-22 15:20:28 -04:00
2012-05-29 16:22:19 -07:00
2012-05-29 16:22:24 -07:00
2012-05-19 02:51:00 -04:00
2012-05-08 20:25:42 +02:00
2012-05-26 14:17:30 -04:00
2012-05-16 15:17:08 -04:00
2012-04-30 14:52:43 -06:00
2012-05-14 14:15:32 -07:00
2012-05-12 15:53:42 -04:00
2012-05-17 08:51:59 -07:00
2012-05-21 23:52:30 -04:00
2012-05-19 18:34:57 -04:00
2012-05-08 12:35:06 +02:00
2012-05-14 18:53:19 -04:00
2012-05-29 16:22:28 -07:00
2012-05-21 16:16:58 -07:00
2012-05-04 16:58:47 -07:00
2012-05-22 12:16:16 +09:30