Skip to content

Commit

Permalink
fanotify: resize pid and reorder structure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tvrtko Ursulin authored and Eric Paris committed Aug 27, 2010
1 parent ff8d6e9 commit 0fb8562
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/linux/fanotify.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@
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 {
Expand Down

0 comments on commit 0fb8562

Please sign in to comment.