Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0fb85621 authored by Tvrtko Ursulin's avatar Tvrtko Ursulin Committed by Eric Paris
Browse files

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: default avatarTvrtko Ursulin <tvrtko.ursulin@sophos.com>
Cc: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: default avatarEric Paris <eparis@redhat.com>
parent ff8d6e98
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -65,14 +65,14 @@
				 FAN_ALL_PERM_EVENTS |\
				 FAN_ALL_PERM_EVENTS |\
				 FAN_Q_OVERFLOW)
				 FAN_Q_OVERFLOW)


#define FANOTIFY_METADATA_VERSION	1
#define FANOTIFY_METADATA_VERSION	2


struct fanotify_event_metadata {
struct fanotify_event_metadata {
	__u32 event_len;
	__u32 event_len;
	__u32 vers;
	__u32 vers;
	__s32 fd;
	__u64 mask;
	__u64 mask;
	__s64 pid;
	__s32 fd;
	__s32 pid;
} __attribute__ ((packed));
} __attribute__ ((packed));


struct fanotify_response {
struct fanotify_response {