diff options
author | Tejun Heo <tj@kernel.org> | 2014-05-13 12:16:21 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-05-13 12:16:21 -0400 |
commit | 6770c64e5c8da4705d1f0973bdeb5c2bf4f3a404 (patch) | |
tree | 29e16383df94d4a31f6fec2f49f5ae84c369f911 /include/linux/cgroup.h | |
parent | 451af504df0c62f695a69b83c250486e77c66378 (diff) |
cgroup: replace cftype->trigger() with cftype->write()
cftype->trigger() is pointless. It's trivial to ignore the input
buffer from a regular ->write() operation. Convert all ->trigger()
users to ->write() and remove ->trigger().
This patch doesn't introduce any visible behavior changes.
Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizefan@huawei.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.cz>
Diffstat (limited to 'include/linux/cgroup.h')
-rw-r--r-- | include/linux/cgroup.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h index aecdc84fe128..08eb71ee600b 100644 --- a/include/linux/cgroup.h +++ b/include/linux/cgroup.h | |||
@@ -500,14 +500,6 @@ struct cftype { | |||
500 | s64 val); | 500 | s64 val); |
501 | 501 | ||
502 | /* | 502 | /* |
503 | * trigger() callback can be used to get some kick from the | ||
504 | * userspace, when the actual string written is not important | ||
505 | * at all. The private field can be used to determine the | ||
506 | * kick type for multiplexing. | ||
507 | */ | ||
508 | int (*trigger)(struct cgroup_subsys_state *css, unsigned int event); | ||
509 | |||
510 | /* | ||
511 | * write() is the generic write callback which maps directly to | 503 | * write() is the generic write callback which maps directly to |
512 | * kernfs write operation and overrides all other operations. | 504 | * kernfs write operation and overrides all other operations. |
513 | * Maximum write size is determined by ->max_write_len. Use | 505 | * Maximum write size is determined by ->max_write_len. Use |