2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

remaps: Rename clean_linked_remap

This routine cleans any file remap.

✓ travis-ci: success for Sanitize initialization bits
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Pavel Emelyanov
2017-05-18 12:36:03 +03:00
committed by Andrei Vagin
parent 23e092f709
commit a534c76c42

View File

@@ -505,7 +505,7 @@ int prepare_remaps(void)
return ret; return ret;
} }
static int clean_linked_remap(struct remap_info *ri) static int clean_one_remap(struct remap_info *ri)
{ {
char path[PATH_MAX]; char path[PATH_MAX];
int mnt_id, ret, rmntns_root; int mnt_id, ret, rmntns_root;
@@ -550,11 +550,11 @@ int try_clean_remaps(bool only_ghosts)
list_for_each_entry(ri, &remaps, list) { list_for_each_entry(ri, &remaps, list) {
if (ri->rfe->remap_type == REMAP_TYPE__GHOST) if (ri->rfe->remap_type == REMAP_TYPE__GHOST)
ret |= clean_linked_remap(ri); ret |= clean_one_remap(ri);
else if (only_ghosts) else if (only_ghosts)
continue; continue;
else if (ri->rfe->remap_type == REMAP_TYPE__LINKED) else if (ri->rfe->remap_type == REMAP_TYPE__LINKED)
ret |= clean_linked_remap(ri); ret |= clean_one_remap(ri);
} }
return ret; return ret;