git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fanotify: fix event filtering with FAN_ONDIR set
[sfrench/cifs-2.6.git]
/
fs
/
notify
/
fanotify
/
fanotify.c
diff --git
a/fs/notify/fanotify/fanotify.c
b/fs/notify/fanotify/fanotify.c
index 9a66ff79ff2781d1c7992dbd3d4ec42a82008f59..d2f97ecca6a5dfe6091d56da09871449574524bf 100644
(file)
--- a/
fs/notify/fanotify/fanotify.c
+++ b/
fs/notify/fanotify/fanotify.c
@@
-143,7
+143,8
@@
static bool fanotify_should_send_event(struct fsnotify_mark *inode_mark,
!(marks_mask & FS_ISDIR & ~marks_ignored_mask))
return false;
- if (event_mask & marks_mask & ~marks_ignored_mask)
+ if (event_mask & FAN_ALL_OUTGOING_EVENTS & marks_mask &
+ ~marks_ignored_mask)
return true;
return false;