]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
memcg: free entries in soft_limit_tree if allocation fails
authorMichal Hocko <mhocko@suse.cz>
Fri, 16 Dec 2011 04:50:39 +0000 (15:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 20 Dec 2011 07:44:02 +0000 (18:44 +1100)
commit574f471f539c58c14c48a1d53e4164e4b6ce453a
tree6fc21c2ddef9080e09bbddced74ddb2c992989a8
parentd6a5661a9be475561679753779d7f9278ce41cb8
memcg: free entries in soft_limit_tree if allocation fails

If we are not able to allocate tree nodes for all NUMA nodes then we
should release those that were allocated.

Signed-off-by: Michal Hocko <mhocko@suse.cz>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Hugh Dickins <hughd@google.com>
Cc: Balbir Singh <bsingharora@gmail.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c