> +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(&current->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
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/containers

_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel

Reply via email to