fanotify: support reporting thread id instead of process id
[linux-2.6-microblaze.git] / fs / notify / fanotify / fanotify.h
index 8609ba0..ea05b8a 100644 (file)
@@ -19,7 +19,7 @@ struct fanotify_event_info {
         * during this object's lifetime
         */
        struct path path;
-       struct pid *tgid;
+       struct pid *pid;
 };
 
 /*
@@ -44,7 +44,7 @@ FANOTIFY_PE(struct fsnotify_event *fse)
 static inline bool fanotify_is_perm_event(u32 mask)
 {
        return IS_ENABLED(CONFIG_FANOTIFY_ACCESS_PERMISSIONS) &&
-               mask & FAN_ALL_PERM_EVENTS;
+               mask & FANOTIFY_PERM_EVENTS;
 }
 
 static inline struct fanotify_event_info *FANOTIFY_E(struct fsnotify_event *fse)