]> git.karo-electronics.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>
Wed, 21 Dec 2011 06:02:00 +0000 (17:02 +1100)
commit245048e87ccf54db28307eff7e4c51d98bcbe00e
tree22a7b15c0b56388f4736e2c538fb02ca47142edf
parentd876f2c9d3f6281f04795634bed75195cb18c745
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