* - 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);
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
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. */