From 3d877ef4aa1f6b0ab5f522e27799f4622fd068bb Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Wed, 14 Oct 2009 20:54:03 +0800 Subject: [PATCH] --- yaml --- r: 167689 b: refs/heads/master c: 3de0ef4f2067da58fa5126d821a56dcb98cdb565 h: refs/heads/master i: 167687: 9ff2b70a24bca47295bebca75116306d0131778a v: v3 --- [refs] | 2 +- trunk/fs/notify/notification.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index d6faeb77c34e..0cbb300c46e8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: cdc321ff0af78e818c97d4787f62bf52bdf9db2a +refs/heads/master: 3de0ef4f2067da58fa5126d821a56dcb98cdb565 diff --git a/trunk/fs/notify/notification.c b/trunk/fs/notify/notification.c index 3816d5750dd5..b8bf53b4c108 100644 --- a/trunk/fs/notify/notification.c +++ b/trunk/fs/notify/notification.c @@ -143,7 +143,7 @@ static bool event_compare(struct fsnotify_event *old, struct fsnotify_event *new /* remember, after old was put on the wait_q we aren't * allowed to look at the inode any more, only thing * left to check was if the file_name is the same */ - if (old->name_len && + if (!old->name_len || !strcmp(old->file_name, new->file_name)) return true; break;