[Devel] [PATCH] memory.min_usage
Paul Menage
menage at google.com
Mon Dec 3 22:03: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
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list