Re: [PATCH v3 6/8] fanotify: add BUILD_BUG_ON() to count the bits of fanotify constants

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu 04-10-18 00:25:37, Amir Goldstein wrote:
> Also define the FANOTIFY_EVENT_FLAGS consisting of the extra flags
> FAN_ONDIR and FAN_ON_CHILD.
> 
> Signed-off-by: Amir Goldstein <amir73il@xxxxxxxxx>
...
>  /* Events that may be reported to user */
>  #define FANOTIFY_OUTGOING_EVENTS	(FANOTIFY_EVENTS | \
>  					 FANOTIFY_PERM_EVENTS | \
>  					 FAN_Q_OVERFLOW)
>  
> +#define ALL_FANOTIFY_EVENT_BITS		(FANOTIFY_EVENTS | \
> +					 FANOTIFY_PERM_EVENTS | \
> +					 FANOTIFY_EVENT_FLAGS | \
> +					 FANOTIFY_OUTGOING_EVENTS)
> +

No point in repeating FANOTIFY_EVENTS | FANOTIFY_PERM_EVENTS here when
they are already included on FANOTIFY_OUTGOING_EVENTS, right? I can fix
that up myself, just wanted to point it out.

								Honza
-- 
Jan Kara <jack@xxxxxxxx>
SUSE Labs, CR



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux