diff options
author | Tejun Heo <tj@kernel.org> | 2015-08-11 13:35:42 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2015-08-11 13:35:42 -0400 |
commit | 731a981e1059dd68c97212ccc9c0e1f169c1a77b (patch) | |
tree | 964bdb7cc4ce503ce3a57cc557285c5acbfadd55 | |
parent | d0ec4230a077521a984ac604acbd8c15cc12a664 (diff) |
cgroup: make cftype->private a unsigned long
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>
-rw-r--r-- | include/linux/cgroup-defs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/cgroup-defs.h b/include/linux/cgroup-defs.h index 93755a629299..8f5770a7d85a 100644 --- a/include/linux/cgroup-defs.h +++ b/include/linux/cgroup-defs.h | |||
@@ -318,7 +318,7 @@ struct cftype { | |||
318 | * end of cftype array. | 318 | * end of cftype array. |
319 | */ | 319 | */ |
320 | char name[MAX_CFTYPE_NAME]; | 320 | char name[MAX_CFTYPE_NAME]; |
321 | int private; | 321 | unsigned long private; |
322 | /* | 322 | /* |
323 | * If not 0, file mode is set to this value, otherwise it will | 323 | * If not 0, file mode is set to this value, otherwise it will |
324 | * be figured out automatically | 324 | * be figured out automatically |