rk: revert to v3.10
[firefly-linux-kernel-4.4.55.git] / fs / notify / fanotify / fanotify_user.c
index f1680cdbd88bcecc78fa3565a89e99b061002d05..6c80083a984fc192ebc73bad2a2edc86b4c25e11 100644 (file)
@@ -122,7 +122,6 @@ static int fill_event_metadata(struct fsnotify_group *group,
        metadata->event_len = FAN_EVENT_METADATA_LEN;
        metadata->metadata_len = FAN_EVENT_METADATA_LEN;
        metadata->vers = FANOTIFY_METADATA_VERSION;
-       metadata->reserved = 0;
        metadata->mask = event->mask & FAN_ALL_OUTGOING_EVENTS;
        metadata->pid = pid_vnr(event->tgid);
        if (unlikely(event->mask & FAN_Q_OVERFLOW))
@@ -867,9 +866,9 @@ COMPAT_SYSCALL_DEFINE6(fanotify_mark,
 {
        return sys_fanotify_mark(fanotify_fd, flags,
 #ifdef __BIG_ENDIAN
-                               ((__u64)mask0 << 32) | mask1,
-#else
                                ((__u64)mask1 << 32) | mask0,
+#else
+                               ((__u64)mask0 << 32) | mask1,
 #endif
                                 dfd, pathname);
 }