diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/cgroup.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c index 436e26f4d624..7c8cc5141877 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c | |||
@@ -1410,6 +1410,10 @@ static ssize_t cgroup_file_write(struct file *file, const char __user *buf, | |||
1410 | return cft->write(cgrp, cft, file, buf, nbytes, ppos); | 1410 | return cft->write(cgrp, cft, file, buf, nbytes, ppos); |
1411 | if (cft->write_u64 || cft->write_s64) | 1411 | if (cft->write_u64 || cft->write_s64) |
1412 | return cgroup_write_X64(cgrp, cft, file, buf, nbytes, ppos); | 1412 | return cgroup_write_X64(cgrp, cft, file, buf, nbytes, ppos); |
1413 | if (cft->trigger) { | ||
1414 | int ret = cft->trigger(cgrp, (unsigned int)cft->private); | ||
1415 | return ret ? ret : nbytes; | ||
1416 | } | ||
1413 | return -EINVAL; | 1417 | return -EINVAL; |
1414 | } | 1418 | } |
1415 | 1419 | ||