]> git.baikalelectronics.ru Git - kernel.git/commitdiff
fanotify: resize pid and reorder structure
authorTvrtko Ursulin <tvrtko.ursulin@sophos.com>
Fri, 20 Aug 2010 09:02:15 +0000 (10:02 +0100)
committerEric Paris <eparis@redhat.com>
Fri, 27 Aug 2010 23:54:09 +0000 (19:54 -0400)
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 <tvrtko.ursulin@sophos.com>
Cc: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Eric Paris <eparis@redhat.com>
include/linux/fanotify.h

index 985435622ecd6bf666ee1b43bb1beef6e9f42537..63531a6b4d2a0e42759dbe1a224a103afec1327a 100644 (file)
                                 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 {