Commit a1b731da authored by Pavel Emelyanov's avatar Pavel Emelyanov

code: Brush up multi-line comments first line

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 5908c2eb
......@@ -273,8 +273,11 @@ static int tmpfs_dump(struct mount_info *pm)
}
close(fd_img);
/* tmpfs is in another mount namespace,
* a direct path is inaccessible */
/*
* tmpfs is in another mount namespace,
* a direct path is inaccessible
*/
snprintf(tmpfs_path, sizeof(tmpfs_path),
"/proc/self/fd/%d", fd);
......@@ -780,8 +783,10 @@ int mntns_collect_root(pid_t pid)
int ret;
char path[PATH_MAX + 1];
/* If /proc/pid/root links on '/', it signs that a root of the task
* and a root of mntns is the same. */
/*
* If /proc/pid/root links on '/', it signs that a root of the task
* and a root of mntns is the same.
*/
pfd = open_pid_proc(pid);
ret = readlinkat(pfd, "root", path, sizeof(path) - 1);
......
......@@ -179,7 +179,8 @@ int get_shmem_fd(int pid, VmaEntry *vi)
if (si->fd != -1)
return dup(si->fd);
/* The following hack solves problems:
/*
* The following hack solves problems:
* vi->pgoff may be not zero in a target process.
* This mapping may be mapped more then once.
* The restorer doesn't have snprintf.
......
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