From: Amir Goldstein Date: Wed, 3 Oct 2018 21:25:32 +0000 (+0300) Subject: fanotify: fix collision of internal and uapi mark flags X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=b723a7911d028fb55f67a63c4c4d895f72e059d4;p=openwrt%2Fstaging%2Fblogic.git fanotify: fix collision of internal and uapi mark flags The new mark flag FAN_MARK_FILESYSTEMS collides with existing internal flag FAN_MARK_ONDIR. Change internal flag value to avoid the collision. Fixes: d54f4fba889b ("fanotify: add API to attach/detach super block mark") Signed-off-by: Amir Goldstein Signed-off-by: Jan Kara --- diff --git a/include/linux/fanotify.h b/include/linux/fanotify.h index 9c5ea3bdfaa0..e70fccc3757e 100644 --- a/include/linux/fanotify.h +++ b/include/linux/fanotify.h @@ -5,7 +5,7 @@ #include /* not valid from userspace, only kernel internal */ -#define FAN_MARK_ONDIR 0x00000100 +#define FAN_MARK_ONDIR 0x80000000 #define FAN_GROUP_FLAG(group, flag) \ ((group)->fanotify_data.flags & (flag))