[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080630112704.632d2f6d.kamezawa.hiroyu@jp.fujitsu.com>
Date: Mon, 30 Jun 2008 11:27:04 +0900
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.com>
To: Hugh Dickins <hugh@...itas.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Balbir Singh <balbir@...ibm.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] memcg: mem_cgroup_shrink_usage css_put
On Sun, 29 Jun 2008 01:15:38 +0100 (BST)
Hugh Dickins <hugh@...itas.com> wrote:
> mem_cgroup_shrink_usage makes no charge: balance its css_get with a css_put.
>
> Signed-off-by: Hugh Dickins <hugh@...itas.com>
Sorry for my mistakes
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@...fujitsu.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;
> --
> 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/
>
--
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