Skip to content

Commit

Permalink
fanotify: Fix up scripted S_ISDIR/S_ISREG/S_ISLNK conversions
Browse files Browse the repository at this point in the history
Fanotify probably doesn't want to watch autodirs so make it use d_can_lookup()
rather than d_is_dir() when checking a dir watch and give an error on fake
directories.

Signed-off-by: David Howells <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
dhowells authored and Al Viro committed Feb 22, 2015
1 parent ce40fa7 commit 54f2a2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/notify/fanotify/fanotify.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 54f2a2f

Please sign in to comment.