mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
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>
This commit is contained in:
parent
4231a23530
commit
2868201965
1 changed files with 2 additions and 2 deletions
|
@ -79,10 +79,10 @@
|
||||||
struct fanotify_event_metadata {
|
struct fanotify_event_metadata {
|
||||||
__u32 event_len;
|
__u32 event_len;
|
||||||
__u32 vers;
|
__u32 vers;
|
||||||
__u64 mask;
|
__aligned_u64 mask;
|
||||||
__s32 fd;
|
__s32 fd;
|
||||||
__s32 pid;
|
__s32 pid;
|
||||||
} __attribute__ ((packed));
|
};
|
||||||
|
|
||||||
struct fanotify_response {
|
struct fanotify_response {
|
||||||
__s32 fd;
|
__s32 fd;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue