ltp/fanotify02 was locked since commit 66ba93c0d7fe
("fanotify: don't set FAN_ONDIR implicitly on a marks ignored mask")

Signed-off-by: Fabian Frederick <f...@skynet.be>
---
 fs/notify/fanotify/fanotify.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/notify/fanotify/fanotify.c b/fs/notify/fanotify/fanotify.c
index d2f97ec..7b3a50b 100644
--- a/fs/notify/fanotify/fanotify.c
+++ b/fs/notify/fanotify/fanotify.c
@@ -140,8 +140,8 @@ static bool fanotify_should_send_event(struct fsnotify_mark 
*inode_mark,
        }
 
        if (d_is_dir(path->dentry) &&
-           !(marks_mask & FS_ISDIR & ~marks_ignored_mask))
-               return false;
+           (marks_mask & FS_ISDIR & ~marks_ignored_mask))
+               return true;
 
        if (event_mask & FAN_ALL_OUTGOING_EVENTS & marks_mask &
                                 ~marks_ignored_mask)
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to