Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155898
b: refs/heads/master
c: 4a148ba
h: refs/heads/master
v: v3
  • Loading branch information
Eric Paris committed Jul 21, 2009
1 parent 815eaad commit 3fc6e5d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 520dc2a526fd681337883b6ff1ddcf7c23b1b063
refs/heads/master: 4a148ba988988b9c400ad0f2cbccc155289b954b
9 changes: 7 additions & 2 deletions trunk/fs/notify/notification.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,15 @@ static bool event_compare(struct fsnotify_event *old, struct fsnotify_event *new
{
if ((old->mask == new->mask) &&
(old->to_tell == new->to_tell) &&
(old->data_type == new->data_type)) {
(old->data_type == new->data_type) &&
(old->name_len == new->name_len)) {
switch (old->data_type) {
case (FSNOTIFY_EVENT_INODE):
if (old->inode == new->inode)
/* 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 &&
!strcmp(old->file_name, new->file_name))
return true;
break;
case (FSNOTIFY_EVENT_PATH):
Expand Down

0 comments on commit 3fc6e5d

Please sign in to comment.