Commit | Line | Data |
---|---|---|
7053aee2 JK |
1 | #include <linux/fsnotify_backend.h> |
2 | #include <linux/path.h> | |
3 | #include <linux/slab.h> | |
4 | ||
5 | extern struct kmem_cache *fanotify_event_cachep; | |
6 | ||
7 | struct fanotify_event_info { | |
8 | struct fsnotify_event fse; | |
9 | /* | |
10 | * We hold ref to this path so it may be dereferenced at any point | |
11 | * during this object's lifetime | |
12 | */ | |
13 | struct path path; | |
14 | struct pid *tgid; | |
15 | #ifdef CONFIG_FANOTIFY_ACCESS_PERMISSIONS | |
16 | u32 response; /* userspace answer to question */ | |
17 | #endif | |
18 | }; | |
19 | ||
20 | static inline struct fanotify_event_info *FANOTIFY_E(struct fsnotify_event *fse) | |
21 | { | |
22 | return container_of(fse, struct fanotify_event_info, fse); | |
23 | } |