cgroup: make cftype->private a unsigned long
authorTejun Heo <tj@kernel.org>
Tue, 11 Aug 2015 17:35:42 +0000 (13:35 -0400)
committerTejun Heo <tj@kernel.org>
Tue, 11 Aug 2015 17:35:42 +0000 (13:35 -0400)
It's pretty unusual to have an int as a private data field and it
makes it impossible to carray a pointer value through it.  Let's make
it an unsigned long.  AFAICS, this shouldn't break anything.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
include/linux/cgroup-defs.h

index 93755a6292995cd20ec5a3df0528f9a72fbf5616..8f5770a7d85ad0c33a55992b39c2945ecfa0369c 100644 (file)
@@ -318,7 +318,7 @@ struct cftype {
         * end of cftype array.
         */
        char name[MAX_CFTYPE_NAME];
-       int private;
+       unsigned long private;
        /*
         * If not 0, file mode is set to this value, otherwise it will
         * be figured out automatically
This page took 0.027815 seconds and 5 git commands to generate.