From fe7339570be7bc6c73775cf6fa9acd37aead110a Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Wed, 28 Nov 2012 21:49:57 +0400 Subject: [PATCH] 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: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- proc_parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proc_parse.c b/proc_parse.c index c075c03a4..e26639cce 100644 --- a/proc_parse.c +++ b/proc_parse.c @@ -935,10 +935,10 @@ int parse_fdinfo(int fd, int type, if (entry_met) 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. */ - if (type == FD_TYPES__EVENTPOLL) + if (type == FD_TYPES__EVENTPOLL || type == FD_TYPES__INOTIFY) return 0; pr_err("No records of type %d found in fdinfo file\n", type);