Skip to content

Commit

Permalink
oomd: "descendent" → "descendant"
Browse files Browse the repository at this point in the history
The latter is the common spelling apparently.
  • Loading branch information
keszybz committed Apr 28, 2022
1 parent 3b18f30 commit 4d620b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/oom/oomd-manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,13 @@ static int process_managed_oom_reply(
return r;
}

/* Fill `new_h` with `path`'s descendent OomdCGroupContexts. Only include descendent cgroups that are possible
/* Fill 'new_h' with 'path's descendant OomdCGroupContexts. Only include descendant cgroups that are possible
* candidates for action. That is, only leaf cgroups or cgroups with memory.oom.group set to "1".
*
* This function ignores most errors in order to handle cgroups that may have been cleaned up while populating
* the hashmap.
* This function ignores most errors in order to handle cgroups that may have been cleaned up while
* populating the hashmap.
*
* `new_h` is of the form { key: cgroup paths -> value: OomdCGroupContext } */
* 'new_h' is of the form { key: cgroup paths -> value: OomdCGroupContext } */
static int recursively_get_cgroup_context(Hashmap *new_h, const char *path) {
_cleanup_free_ char *subpath = NULL;
_cleanup_closedir_ DIR *d = NULL;
Expand Down

0 comments on commit 4d620b9

Please sign in to comment.