From: Lennart Poettering Date: Wed, 9 Oct 2024 13:39:30 +0000 (+0200) Subject: namespace: rename drop_unused_mounts() → sort_and_drop_unused_mounts() X-Git-Tag: v257-rc1~283 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1913ffb894c47f85ca6e7012d7c894cf7c700694;p=thirdparty%2Fsystemd.git namespace: rename drop_unused_mounts() → sort_and_drop_unused_mounts() The function sorts the listed mounts, and that's kinda key, hence reflect that in the name. --- diff --git a/src/core/namespace.c b/src/core/namespace.c index dac476be271..d13d57f11aa 100644 --- a/src/core/namespace.c +++ b/src/core/namespace.c @@ -1940,7 +1940,7 @@ static bool namespace_parameters_mount_apivfs(const NamespaceParameters *p) { * - that are outside of the relevant root directory * - which are duplicates */ -static void drop_unused_mounts(MountList *ml, const char *root_directory) { +static void sort_and_drop_unused_mounts(MountList *ml, const char *root_directory) { assert(ml); assert(root_directory); @@ -2085,7 +2085,7 @@ static int apply_mounts( if (!again) break; - drop_unused_mounts(ml, root); + sort_and_drop_unused_mounts(ml, root); } /* Now that all filesystems have been set up, but before the @@ -2661,7 +2661,7 @@ int setup_namespace(const NamespaceParameters *p, char **error_path) { if (r < 0) return r; - drop_unused_mounts(&ml, root); + sort_and_drop_unused_mounts(&ml, root); /* All above is just preparation, figuring out what to do. Let's now actually start doing something. */