From: Tvrtko Ursulin Date: Fri, 20 Aug 2010 09:02:15 +0000 (+0100) Subject: fanotify: resize pid and reorder structure X-Git-Tag: v3.0~3477^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0fb85621df4f9f7c663c6c77c302e821a832c95e;p=platform%2Fkernel%2Flinux-amlogic.git fanotify: resize pid and reorder structure resize pid and reorder the fanotify_event_metadata so it is naturally aligned and we can work towards dropping the packed attributed Signed-off-by: Tvrtko Ursulin Cc: Andreas Dilger Signed-off-by: Eric Paris --- diff --git a/include/linux/fanotify.h b/include/linux/fanotify.h index 9854356..63531a6 100644 --- a/include/linux/fanotify.h +++ b/include/linux/fanotify.h @@ -65,14 +65,14 @@ FAN_ALL_PERM_EVENTS |\ FAN_Q_OVERFLOW) -#define FANOTIFY_METADATA_VERSION 1 +#define FANOTIFY_METADATA_VERSION 2 struct fanotify_event_metadata { __u32 event_len; __u32 vers; - __s32 fd; __u64 mask; - __s64 pid; + __s32 fd; + __s32 pid; } __attribute__ ((packed)); struct fanotify_response {