Commit a534c76c authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by Andrei Vagin

remaps: Rename clean_linked_remap

This routine cleans any file remap.

✓ travis-ci: success for Sanitize initialization bits
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 23e092f7
......@@ -505,7 +505,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;
......@@ -550,11 +550,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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment