> I think you can simplify this part by using parent_mem_cgroup() like: > > parent = parent_mem_cgroup(memcg); > if (!memcg) ^^^^^^^^ must be !parent of course :) -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>