fanotify: copy event fid info to user
[sfrench/cifs-2.6.git] / fs / notify / fanotify / fanotify.h
index 271482fb96118381d4f584fef274252b06c56525..4aafc7144c3d6eae52fbe0e9e6ba70a47888fc44 100644 (file)
@@ -95,6 +95,11 @@ static inline bool fanotify_event_has_ext_fh(struct fanotify_event *event)
                event->fh_len > FANOTIFY_INLINE_FH_LEN;
 }
 
+static inline void *fanotify_event_fh(struct fanotify_event *event)
+{
+       return fanotify_fid_fh(&event->fid, event->fh_len);
+}
+
 /*
  * Structure for permission fanotify events. It gets allocated and freed in
  * fanotify_handle_event() since we wait there for user response. When the