fanotify: simplify handling of FAN_ONDIR
authorAmir Goldstein <amir73il@gmail.com>
Wed, 3 Oct 2018 21:25:34 +0000 (00:25 +0300)
committerJan Kara <jack@suse.cz>
Thu, 4 Oct 2018 11:28:29 +0000 (13:28 +0200)
commita72fd224e37bf6a0630bce302deebbccbc236ba2
treef4d2451ae1391a8369e9b34c3fefc58a72f680e0
parent007d1e8395eaa59b0e7ad9eb2b53a40859446a88
fanotify: simplify handling of FAN_ONDIR

fanotify mark add/remove code jumps through hoops to avoid setting the
FS_ISDIR in the commulative object mask.

That was just papering over a bug in fsnotify() handling of the FS_ISDIR
extra flag. This bug is now fixed, so all the hoops can be removed along
with the unneeded internal flag FAN_MARK_ONDIR.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fanotify/fanotify_user.c
include/linux/fanotify.h