On 03/13/2012 05:28 PM, Glauber Costa wrote:
On 03/13/2012 11:07 AM, Aneesh Kumar K.V wrote:
@@ -4951,6 +5083,12 @@ static int mem_cgroup_pre_destroy(struct
cgroup_subsys *ss,
struct cgroup *cont)
{
struct mem_cgroup *memcg = mem_cgroup_from_cont(cont);
+ /*
+ * Don't allow memcg removal if we have HugeTLB resource
+ * usage.
+ */
+ if (mem_cgroup_hugetlb_usage(memcg)> 0)
+ return -EBUSY;
return mem_cgroup_force_empty(memcg, false);
Why can't you move the charges like everyone else?
Nevermind, just saw your last patch.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>