2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00

vdso: drop excessive parameter who from vdso_proxify

It's always "dumpee" and is used in two pr_err() messages,
put it right there.

Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Dmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Dmitry Safonov
2017-02-16 19:20:42 +03:00
committed by Andrei Vagin
parent 2c34d08055
commit 2261748e41
3 changed files with 5 additions and 5 deletions

View File

@@ -81,7 +81,7 @@ static inline bool is_vdso_mark(void *addr)
extern int vdso_do_park(struct vdso_symtable *sym_rt, unsigned long park_at, unsigned long park_size);
extern int vdso_map_compat(unsigned long map_at);
extern int vdso_proxify(char *who, struct vdso_symtable *sym_rt,
extern int vdso_proxify(struct vdso_symtable *sym_rt,
unsigned long vdso_rt_parked_at, size_t index,
VmaEntry *vmas, size_t nr_vmas, bool compat_vdso);

View File

@@ -103,7 +103,7 @@ int __vdso_fill_symtable(uintptr_t mem, size_t size,
}
#endif
int vdso_proxify(char *who, struct vdso_symtable *sym_rt,
int vdso_proxify(struct vdso_symtable *sym_rt,
unsigned long vdso_rt_parked_at, size_t index,
VmaEntry *vmas, size_t nr_vmas, bool compat_vdso)
{
@@ -197,14 +197,14 @@ int vdso_proxify(char *who, struct vdso_symtable *sym_rt,
if (sys_munmap((void *)(uintptr_t)vma_vdso->start,
vma_entry_len(vma_vdso))) {
pr_err("Failed to unmap %s\n", who);
pr_err("Failed to unmap dumpee\n");
return -1;
}
if (vma_vvar) {
if (sys_munmap((void *)(uintptr_t)vma_vvar->start,
vma_entry_len(vma_vvar))) {
pr_err("Failed to unmap %s\n", who);
pr_err("Failed to unmap dumpee\n");
return -1;
}

View File

@@ -1188,7 +1188,7 @@ long __export_restore_task(struct task_restore_args *args)
for (i = 0; i < args->vmas_n; i++) {
if (vma_entry_is(&args->vmas[i], VMA_AREA_VDSO) ||
vma_entry_is(&args->vmas[i], VMA_AREA_VVAR)) {
if (vdso_proxify("dumpee", &args->vdso_sym_rt,
if (vdso_proxify(&args->vdso_sym_rt,
args->vdso_rt_parked_at,
i, args->vmas, args->vmas_n,
args->compatible_mode))