aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2010-10-28 17:21:56 -0400
committerEric Paris <eparis@redhat.com>2010-10-28 17:22:13 -0400
commit2868201965419b9011f3f07fd80e765181343cb1 (patch)
tree73cf2f58121c05367a3fc79380b0e28a127fe9fe /include
parent4231a23530a30e86eb32fbe869bbef1b3e54d5aa (diff)
fanotify: use __aligned_u64 in fanotify userspace metadata
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fanotify.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/fanotify.h b/include/linux/fanotify.h
index 2c89ce7b644e..8a621c1a0991 100644
--- a/include/linux/fanotify.h
+++ b/include/linux/fanotify.h
@@ -79,10 +79,10 @@
79struct fanotify_event_metadata { 79struct fanotify_event_metadata {
80 __u32 event_len; 80 __u32 event_len;
81 __u32 vers; 81 __u32 vers;
82 __u64 mask; 82 __aligned_u64 mask;
83 __s32 fd; 83 __s32 fd;
84 __s32 pid; 84 __s32 pid;
85} __attribute__ ((packed)); 85};
86 86
87struct fanotify_response { 87struct fanotify_response {
88 __s32 fd; 88 __s32 fd;