[CRIU] [PATCH 4/8] remaps: Rename clean_linked_remap
Pavel Emelyanov
xemul at virtuozzo.com
Thu May 18 02:36:03 PDT 2017
This routine cleans any file remap.
Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
---
criu/files-reg.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/criu/files-reg.c b/criu/files-reg.c
index d5e22af..06ff0f3 100644
--- a/criu/files-reg.c
+++ b/criu/files-reg.c
@@ -507,7 +507,7 @@ int prepare_remaps(void)
return ret;
}
-static int clean_linked_remap(struct remap_info *ri)
+static int clean_one_remap(struct remap_info *ri)
{
char path[PATH_MAX];
int mnt_id, ret, rmntns_root;
@@ -552,11 +552,11 @@ int try_clean_remaps(bool only_ghosts)
list_for_each_entry(ri, &remaps, list) {
if (ri->rfe->remap_type == REMAP_TYPE__GHOST)
- ret |= clean_linked_remap(ri);
+ ret |= clean_one_remap(ri);
else if (only_ghosts)
continue;
else if (ri->rfe->remap_type == REMAP_TYPE__LINKED)
- ret |= clean_linked_remap(ri);
+ ret |= clean_one_remap(ri);
}
return ret;
--
2.1.4
More information about the CRIU
mailing list