Thread (31 messages) 31 messages, 4 authors, 2012-03-14

Re: [PATCH -V3 4/8] memcg: track resource index in cftype private

From: Glauber Costa <hidden>
Date: 2012-03-13 13:35:36
Also in: linux-mm

On 03/13/2012 11:07 AM, Aneesh Kumar K.V wrote:
  		if (type == _MEM)
  			ret = mem_cgroup_resize_limit(memcg, val);
-		else
+		else if (type == _MEMHUGETLB) {
+			int idx = MEMFILE_IDX(cft->private);
+			ret = res_counter_set_limit(&memcg->hugepage[idx], val);
+		} else
  			ret = mem_cgroup_resize_memsw_limit(memcg, val);
  		break;
  	case RES_SOFT_LIMIT:
What if a user try to set limit < usage ? Isn't there any reclaim that 
we could possibly do, like it is done by normal memcg ?

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  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@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help