From: Hugh Dickins <hugh@veritas.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>,
Balbir Singh <balbir@in.ibm.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH] memcg: mem_cgroup_shrink_usage css_put
Date: Sun, 29 Jun 2008 01:15:38 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.64.0806290114380.20280@blonde.site> (raw)
In-Reply-To: <Pine.LNX.4.64.0806290108110.20280@blonde.site>
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;
next prev parent reply other threads:[~2008-06-29 0:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-29 0:13 [PATCH] memcg: fix shmem_unuse_inode charging Hugh Dickins
2008-06-29 0:14 ` [PATCH] memcg: shmem_getpage release page sooner Hugh Dickins
2008-06-30 2:28 ` KAMEZAWA Hiroyuki
2008-06-29 0:15 ` Hugh Dickins [this message]
2008-06-30 2:27 ` [PATCH] memcg: mem_cgroup_shrink_usage css_put KAMEZAWA Hiroyuki
2008-06-30 6:28 ` Balbir Singh
2008-06-29 0:17 ` [PATCH] memcg: further checking of disabled flag Hugh Dickins
2008-06-30 2:26 ` KAMEZAWA Hiroyuki
2008-06-30 6:27 ` Balbir Singh
2008-06-30 6:05 ` Li Zefan
2008-06-30 2:23 ` [PATCH] memcg: fix shmem_unuse_inode charging KAMEZAWA Hiroyuki
2008-06-30 6:26 ` Balbir Singh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.0806290114380.20280@blonde.site \
--to=hugh@veritas.com \
--cc=akpm@linux-foundation.org \
--cc=balbir@in.ibm.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®