core/namespace: s/normalize_mounts()/drop_unused_mounts()
authorChristian Brauner <brauner@kernel.org>
Mon, 24 Jan 2022 09:12:57 +0000 (10:12 +0100)
committerLuca Boccassi <bluca@debian.org>
Mon, 14 Feb 2022 21:56:48 +0000 (21:56 +0000)
commit09936a7ec92c859b3c4c9520ecd49c2909a8b35c
tree997a20a01b337d9384fc9fa173641bc7c8c73b88
parenta727941affa7821592d503c8a5033c92d615f64c
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
(cherry picked from commit fbf90c0d5cadc5d1e95485f770f45a7d4cd39daa)
src/core/namespace.c