From 4e0276340a021e73af0c3f86b03a101161a88ebf Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Tue, 22 Sep 2015 14:49:19 +0300 Subject: [PATCH] mnt: Rename collect_shared and remove unused for_dump argument Signed-off-by: Pavel Emelyanov --- mount.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mount.c b/mount.c index b85515c1a..b89dcc675 100644 --- a/mount.c +++ b/mount.c @@ -911,7 +911,7 @@ static int resolve_external_mounts(struct mount_info *info) return 0; } -static int collect_shared(struct mount_info *info, bool for_dump) +static int resolve_shared_mounts(struct mount_info *info) { struct mount_info *m, *t; @@ -2686,7 +2686,7 @@ static int populate_mnt_ns(void) if (!pms) return -1; - if (collect_shared(mntinfo, false)) + if (resolve_shared_mounts(mntinfo)) return -1; for (nsid = ns_ids; nsid; nsid = nsid->next) { @@ -2961,7 +2961,7 @@ int collect_mnt_namespaces(bool for_dump) if (arg.need_to_validate) { ret = -1; - if (collect_shared(mntinfo, true)) + if (resolve_shared_mounts(mntinfo)) goto err; if (validate_mounts(mntinfo, true)) goto err;