[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1331325556-16447-9-git-send-email-ssouhlal@FreeBSD.org>
Date: Fri, 9 Mar 2012 12:39:11 -0800
From: Suleiman Souhlal <ssouhlal@...eBSD.org>
To: cgroups@...r.kernel.org
Cc: suleiman@...gle.com, glommer@...allels.com,
kamezawa.hiroyu@...fujitsu.com, penberg@...nel.org, cl@...ux.com,
yinghan@...gle.com, hughd@...gle.com, gthelen@...gle.com,
peterz@...radead.org, dan.magenheimer@...cle.com,
hannes@...xchg.org, mgorman@...e.de,
James.Bottomley@...senPartnership.com, linux-mm@...ck.org,
devel@...nvz.org, linux-kernel@...r.kernel.org,
Suleiman Souhlal <ssouhlal@...eBSD.org>
Subject: [PATCH v2 08/13] memcg: Make dentry slab memory accounted in kernel memory accounting.
Signed-off-by: <suleiman@...gle.com>
---
fs/dcache.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/dcache.c b/fs/dcache.c
index bcbdb33..cc6dd92 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -3022,8 +3022,8 @@ static void __init dcache_init(void)
* but it is probably not worth it because of the cache nature
* of the dcache.
*/
- dentry_cache = KMEM_CACHE(dentry,
- SLAB_RECLAIM_ACCOUNT|SLAB_PANIC|SLAB_MEM_SPREAD);
+ dentry_cache = KMEM_CACHE(dentry, SLAB_RECLAIM_ACCOUNT | SLAB_PANIC |
+ SLAB_MEM_SPREAD | SLAB_MEMCG_ACCT);
/* Hash may have been set up in dcache_init_early */
if (!hashdist)
--
1.7.7.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists