diff options
author | Daniel Mack <daniel@zonque.org> | 2017-09-05 19:27:53 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-09-22 15:24:55 +0200 |
commit | 906c06f64a87cce5378191c092d10432543ea907 (patch) | |
tree | 48e13e6705e3e7841017c44d5ab48244430c2f31 /src/core/mount.c | |
parent | 1988a9d12015990c145a6e8515d5e22ef88b32cb (diff) | |
download | systemd-906c06f64a87cce5378191c092d10432543ea907.tar.gz |
cgroup, unit, fragment parser: make use of new firewall functions
Diffstat (limited to 'src/core/mount.c')
-rw-r--r-- | src/core/mount.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index 472f54242c..46bcf37ae0 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -754,9 +754,10 @@ static int mount_spawn(Mount *m, ExecCommand *c, pid_t *_pid) { assert(_pid); (void) unit_realize_cgroup(UNIT(m)); - if (m->reset_cpu_usage) { - (void) unit_reset_cpu_usage(UNIT(m)); - m->reset_cpu_usage = false; + if (m->reset_accounting) { + (void) unit_reset_cpu_accounting(UNIT(m)); + (void) unit_reset_ip_accounting(UNIT(m)); + m->reset_accounting = false; } r = unit_setup_exec_runtime(UNIT(m)); @@ -1044,7 +1045,7 @@ static int mount_start(Unit *u) { m->result = MOUNT_SUCCESS; m->reload_result = MOUNT_SUCCESS; - m->reset_cpu_usage = true; + m->reset_accounting = true; mount_enter_mounting(m); return 1; |