File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -171,12 +171,18 @@ static inline void fanotify_init_event(struct fanotify_event *event,
171
171
event -> pid = NULL ;
172
172
}
173
173
174
+ #define FANOTIFY_INLINE_FH (name , size ) \
175
+ struct { \
176
+ struct fanotify_fh (name); \
177
+ /* Space for object_fh.buf[] - access with fanotify_fh_buf() */ \
178
+ unsigned char _inline_fh_buf[(size)]; \
179
+ }
180
+
174
181
struct fanotify_fid_event {
175
182
struct fanotify_event fae ;
176
183
__kernel_fsid_t fsid ;
177
- struct fanotify_fh object_fh ;
178
- /* Reserve space in object_fh.buf[] - access with fanotify_fh_buf() */
179
- unsigned char _inline_fh_buf [FANOTIFY_INLINE_FH_LEN ];
184
+
185
+ FANOTIFY_INLINE_FH (object_fh , FANOTIFY_INLINE_FH_LEN );
180
186
};
181
187
182
188
static inline struct fanotify_fid_event *
You can’t perform that action at this time.
0 commit comments