fanotify: Fix up scripted S_ISDIR/S_ISREG/S_ISLNK conversions
authorDavid Howells <dhowells@redhat.com>
Thu, 29 Jan 2015 12:02:36 +0000 (12:02 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 22 Feb 2015 16:38:42 +0000 (11:38 -0500)
commit54f2a2f42759b11ada761013a12f0e743702219a
tree8d1cf4e87856eba3772b466ad4b145218b2f9c79
parentce40fa78ef8f0e813392903c96de65b947298d16
fanotify: Fix up scripted S_ISDIR/S_ISREG/S_ISLNK conversions

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 <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/notify/fanotify/fanotify.c