diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-02-15 02:08:16 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-02-15 02:08:16 +0100 |
commit | 0b75493da03fed3bf077791ce1289910eb6f6641 (patch) | |
tree | 521dfe26128adbbe60fb047a8dac5e78580628db /src/oom | |
parent | test-boot-timestamp: Handle ERANGE error (diff) | |
download | systemd-0b75493da03fed3bf077791ce1289910eb6f6641.tar.xz systemd-0b75493da03fed3bf077791ce1289910eb6f6641.zip |
tree-wide: fix typo and comment style update
Diffstat (limited to 'src/oom')
-rw-r--r-- | src/oom/oomd-util.h | 2 | ||||
-rw-r--r-- | src/oom/test-oomd-util.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/oom/oomd-util.h b/src/oom/oomd-util.h index a758d5589b..f53e4c47e8 100644 --- a/src/oom/oomd-util.h +++ b/src/oom/oomd-util.h @@ -109,7 +109,7 @@ static inline int compare_swap_usage(OomdCGroupContext * const *c1, OomdCGroupCo * Returns the number of sorted items; negative on error. */ int oomd_sort_cgroup_contexts(Hashmap *h, oomd_compare_t compare_func, const char *prefix, OomdCGroupContext ***ret); -/* If the the cgroup is owned by root, or the cgroups represented by `ctx` and +/* If the cgroup is owned by root, or the cgroups represented by `ctx` and * `prefix` are owned by the same user, then set `ctx->preference` using the * `user.oomd_avoid` and `user.oomd_omit` xattrs. Otherwise, set * `ctx->preference` to MANAGED_OOM_PREFERENCE_NONE. diff --git a/src/oom/test-oomd-util.c b/src/oom/test-oomd-util.c index ed98812399..ef99d924bb 100644 --- a/src/oom/test-oomd-util.c +++ b/src/oom/test-oomd-util.c @@ -474,7 +474,7 @@ static void test_oomd_fetch_cgroup_oom_preference(void) { assert_se(oomd_fetch_cgroup_oom_preference(ctx, "/herp.slice/derp.scope") == -EINVAL); /* Assert that avoid/omit are not set if the cgroup and prefix are not - * owned by the same user.*/ + * owned by the same user. */ if (test_xattrs && !empty_or_root(cgroup)) { ctx = oomd_cgroup_context_free(ctx); assert_se(cg_set_access(SYSTEMD_CGROUP_CONTROLLER, cgroup, 61183, 0) >= 0); |