summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fs/notify/fanotify/fanotify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/notify/fanotify/fanotify.c b/fs/notify/fanotify/fanotify.c
index 61fdbb826324..9a66ff79ff27 100644
--- a/fs/notify/fanotify/fanotify.c
+++ b/fs/notify/fanotify/fanotify.c
@@ -116,7 +116,7 @@ static bool fanotify_should_send_event(struct fsnotify_mark *inode_mark,
/* sorry, fanotify only gives a damn about files and dirs */
if (!d_is_reg(path->dentry) &&
- !d_is_dir(path->dentry))
+ !d_can_lookup(path->dentry))
return false;
if (inode_mark && vfsmnt_mark) {