[4/8] remaps: Rename clean_linked_remap

Submitted by Pavel Emelianov on May 18, 2017, 9:36 a.m.

Details

Message ID 8e34da0e-eb47-43b6-7e3d-e7abda6302ff@virtuozzo.com
State Accepted
Series "Sanitize initialization bits"
Headers show

Commit Message

Pavel Emelianov May 18, 2017, 9:36 a.m.
This routine cleans any file remap.

Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
---
 criu/files-reg.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

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;