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

proc-parse: Inotify files migh have no watchee assigned

Same as eventpoll -- we might have no watchee assigned
but only inotify descriptor created.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 03d0758d
...@@ -935,10 +935,10 @@ int parse_fdinfo(int fd, int type, ...@@ -935,10 +935,10 @@ int parse_fdinfo(int fd, int type,
if (entry_met) if (entry_met)
return 0; return 0;
/* /*
* An eventpoll file may have no target fds set thus * An eventpoll/inotify file may have no target fds set thus
* resulting in no tfd: lines in proc. This is normal. * resulting in no tfd: lines in proc. This is normal.
*/ */
if (type == FD_TYPES__EVENTPOLL) if (type == FD_TYPES__EVENTPOLL || type == FD_TYPES__INOTIFY)
return 0; return 0;
pr_err("No records of type %d found in fdinfo file\n", type); pr_err("No records of type %d found in fdinfo file\n", type);
......
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