[PATCH 10/10] mm/memcg: per-memcg per-zone lru locking

From: Hugh Dickins
Date: Mon Feb 20 2012 - 18:39:24 EST


Flip the switch from per-zone lru locking to per-memcg per-zone lru locking.

Signed-off-by: Hugh Dickins <hughd@xxxxxxxxxx>
---
include/linux/swap.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

--- mmotm.orig/include/linux/swap.h 2012-02-18 11:58:09.047525220 -0800
+++ mmotm/include/linux/swap.h 2012-02-18 11:58:15.659525376 -0800
@@ -252,8 +252,8 @@ static inline void lru_cache_add_file(st

static inline spinlock_t *lru_lockptr(struct lruvec *lruvec)
{
- /* Still use per-zone lru_lock */
- return &lruvec->zone->lruvec.lru_lock;
+ /* Now use per-memcg-per-zone lru_lock */
+ return &lruvec->lru_lock;
}

static inline void lock_lruvec(struct lruvec *lruvec)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/