[Devel] [PATCH] memory.min_usage
YAMAMOTO Takashi
yamamoto at valinux.co.jp
Mon Dec 3 23:02:57 PST 2007
> On Dec 3, 2007 8:09 PM, YAMAMOTO Takashi <yamamoto at valinux.co.jp> wrote:
> > +static u64 mem_cgroup_min_usage_read(struct cgroup *cont, struct cftype *cft)
> > +{
> > + struct mem_cgroup *mem = mem_cgroup_from_cont(cont);
> > +
> > + return mem->min_usage;
> > +}
> > +
>
> This won't be atomic on a 32-bit arch, and I don't think you have any locking.
>
> Paul
sure. probably it's better to make it a part of res_counter.
YAMAMOTO Takashi
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list