Commit be534b9e authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

fsnotify: Move debug printing into get_mark_path

This prints out more details on what is going on.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 5425da0b
......@@ -164,6 +164,9 @@ static char *get_mark_path(const char *who, struct file_remap *remap,
path = remap->path;
}
pr_debug("\t\tRestore %s watch for 0x%08x:0x%016lx (via %s)\n",
who, s_dev, i_ino, path);
err:
close_safe(&mntfd);
return path;
......@@ -181,8 +184,6 @@ static int restore_one_inotify(int inotify_fd, struct inotify_wd_info *info)
if (!path)
goto err;
pr_debug("\t\tRestore watch for 0x%08x:0x%016lx\n", iwe->s_dev, iwe->i_ino);
/*
* FIXME The kernel allocates wd-s sequentially,
* this is suboptimal, but the kernel doesn't
......
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