summaryrefslogtreecommitdiffstats
path: root/fs/notify/notification.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2009-11-23 18:34:58 +0100
committerJ. Bruce Fields <bfields@citi.umich.edu>2009-11-23 18:34:58 +0100
commit9b8b317d58084b9a44f6f33b355c4278d9f841fb (patch)
treee0df89800bf4301c4017db3cdf04a2056ec1a852 /fs/notify/notification.c
parentRevert "knfsd: avoid overloading the CPU scheduler with enormous load averages" (diff)
parentLinux 2.6.32-rc8 (diff)
downloadlinux-9b8b317d58084b9a44f6f33b355c4278d9f841fb.tar.xz
linux-9b8b317d58084b9a44f6f33b355c4278d9f841fb.zip
Merge commit 'v2.6.32-rc8' into HEAD
Diffstat (limited to 'fs/notify/notification.c')
-rw-r--r--fs/notify/notification.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/notify/notification.c b/fs/notify/notification.c
index 3816d5750dd5..b8bf53b4c108 100644
--- a/fs/notify/notification.c
+++ b/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;