[Devel] Re: [PATCH 2/7] [RFC]Move the cgroup debug subsys into cgroup.c to access internal state
Li Zefan
lizf at cn.fujitsu.com
Mon Mar 16 23:44:32 PDT 2009
> +static u64 current_css_set_refcount_read(struct cgroup *cont,
we can change those 'cont' to 'cgrp' along with this patch
> + struct cftype *cft)
> +{
> + u64 count;
> +
> + rcu_read_lock();
> + count = atomic_read(¤t->cgroups->refcount);
> + rcu_read_unlock();
> + return count;
> +}
> +
> +static u64 releasable_read(struct cgroup *cgrp, struct cftype *cft)
> +{
> + return test_bit(CGRP_RELEASABLE, &cgrp->flags);
> +}
> +
> +static struct cftype debug_files[] = {
> + {
> + .name = "cgroup_refcount",
> + .read_u64 = cgroup_refcount_read,
> + },
a trivial inconsistency that no blank line here
> + {
> + .name = "taskcount",
> + .read_u64 = taskcount_read,
> + },
> +
> + {
> + .name = "current_css_set",
> + .read_u64 = current_css_set_read,
> + },
> +
> + {
> + .name = "current_css_set_refcount",
> + .read_u64 = current_css_set_refcount_read,
> + },
> +
> + {
> + .name = "releasable",
> + .read_u64 = releasable_read,
> + },
> +};
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list