lkml.org 
[lkml]   [2008]   [Jun]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] memcg: mem_cgroup_shrink_usage css_put
mem_cgroup_shrink_usage makes no charge: balance its css_get with a css_put.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
---
Should follow mmotm's memcg-helper-function-for-relcaim-from-shmem.patch

mm/memcontrol.c | 1 +
1 file changed, 1 insertion(+)

--- mmotm/mm/memcontrol.c 2008-06-27 13:39:20.000000000 +0100
+++ linux/mm/memcontrol.c 2008-06-27 17:32:29.000000000 +0100
@@ -801,6 +801,7 @@ int mem_cgroup_shrink_usage(struct mm_st
progress = try_to_free_mem_cgroup_pages(mem, gfp_mask);
} while (!progress && --retry);

+ css_put(&mem->css);
if (!retry)
return -ENOMEM;
return 0;

\
 
 \ /
  Last update: 2008-06-29 02:17    [W:0.075 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site