]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
fanotify: use __aligned_u64 in fanotify userspace metadata
authorEric Paris <eparis@redhat.com>
Thu, 28 Oct 2010 21:21:56 +0000 (17:21 -0400)
committerEric Paris <eparis@redhat.com>
Thu, 28 Oct 2010 21:22:13 +0000 (17:22 -0400)
Currently the userspace struct exposed by fanotify uses
__attribute__((packed)) to make sure that alignment works on multiarch
platforms.  Since this causes a severe performance penalty on some
platforms we are going to switch to using explicit alignment notation on
the 64bit values so we don't have to use 'packed'

Signed-off-by: Eric Paris <eparis@redhat.com>
include/linux/fanotify.h

index 2c89ce7b644ebf0182e7467bc6a0633b3e60686b..8a621c1a0991458e4b41ca61cd0e3e974334777b 100644 (file)
 struct fanotify_event_metadata {
        __u32 event_len;
        __u32 vers;
-       __u64 mask;
+       __aligned_u64 mask;
        __s32 fd;
        __s32 pid;
-} __attribute__ ((packed));
+};
 
 struct fanotify_response {
        __s32 fd;