]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/namespace.c
core/namespace: s/normalize_mounts()/drop_unused_mounts() 22203/head
authorChristian Brauner <brauner@kernel.org>
Mon, 24 Jan 2022 09:12:57 +0000 (10:12 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 24 Jan 2022 09:22:47 +0000 (10:22 +0100)
commitfbf90c0d5cadc5d1e95485f770f45a7d4cd39daa
treed00258b9a8a399a70941948e507b14605ab2e0b1
parent1361f015773e3b4d74e382edf1565f3315a3396b
core/namespace: s/normalize_mounts()/drop_unused_mounts()

Rename the normalize_mounts() helper to drop_unused_mounts. All the
helpers called in there get rid of mounts that are unused for a variety
of reasons. And whereas the helpers are aptly prefixed with "drop" the
overall helper isn't and instead uses "normalize".

Make it more obvious what the helper actually does by renaming it from
normalize_mounts() to drop_unused_mounts(). Readers of code calling this
helper will immediately see that it will get rid of unused mounts.

Link: https://github.com/systemd/systemd/issues/22206
src/core/namespace.c