VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   57 Tags
author: Eric Paris <eparis@redhat.com> 2009-06-11 11:09:47 -0400 committer: Eric Paris <eparis@redhat.com> 2009-06-11 14:57:54 -0400 commit: e42e27736de80045f925564ea27a1d32957219e7 parent: ce61856bd2aadb064f595e5c0444376a2b117c41
Commit Summary:
inotify/dnotify: should_send_event shouldn't match on FS_EVENT_ON_CHILD
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/fs/notify/dnotify/dnotify.c b/fs/notify/dnotify/dnotify.c
index ec459b6e8c64..98a751614c74 100644
--- a/fs/notify/dnotify/dnotify.c
+++ b/fs/notify/dnotify/dnotify.c
@@ -153,6 +153,7 @@ static bool dnotify_should_send_event(struct fsnotify_group *group,
 	if (!entry)
 		return false;
 
+	mask = (mask & ~FS_EVENT_ON_CHILD);
 	send = (mask & entry->mask);
 
 	fsnotify_put_mark(entry); /* matches fsnotify_find_mark_entry */