fanotify: add BUILD_BUG_ON() to count the bits of fanotify constants
authorAmir Goldstein <amir73il@gmail.com>
Wed, 3 Oct 2018 21:25:37 +0000 (00:25 +0300)
committerJan Kara <jack@suse.cz>
Thu, 4 Oct 2018 11:30:03 +0000 (13:30 +0200)
commitbdd5a46fe30653cb4d26c7c787a22159bf79eed9
tree4a6560e20f63bd8142925ccf5d9971e3f8374af0
parenta39f7ec41766118bf836d266224505741570ada6
fanotify: add BUILD_BUG_ON() to count the bits of fanotify constants

Also define the FANOTIFY_EVENT_FLAGS consisting of the extra flags
FAN_ONDIR and FAN_ON_CHILD.

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