ARM: dts: omap5: Add bus_dma_limit for L3 bus
[linux/fpc-iii.git] / fs / notify / inotify / inotify.h
blob3f246f7b8a92b2199469f3a76f35f5783af1cc79
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <linux/fsnotify_backend.h>
3 #include <linux/inotify.h>
4 #include <linux/slab.h> /* struct kmem_cache */
6 struct inotify_event_info {
7 struct fsnotify_event fse;
8 u32 mask;
9 int wd;
10 u32 sync_cookie;
11 int name_len;
12 char name[];
15 struct inotify_inode_mark {
16 struct fsnotify_mark fsn_mark;
17 int wd;
20 static inline struct inotify_event_info *INOTIFY_E(struct fsnotify_event *fse)
22 return container_of(fse, struct inotify_event_info, fse);
25 extern void inotify_ignored_and_remove_idr(struct fsnotify_mark *fsn_mark,
26 struct fsnotify_group *group);
27 extern int inotify_handle_event(struct fsnotify_group *group,
28 struct inode *inode,
29 u32 mask, const void *data, int data_type,
30 const struct qstr *file_name, u32 cookie,
31 struct fsnotify_iter_info *iter_info);
33 extern const struct fsnotify_ops inotify_fsnotify_ops;
34 extern struct kmem_cache *inotify_inode_mark_cachep;
36 #ifdef CONFIG_INOTIFY_USER
37 static inline void dec_inotify_instances(struct ucounts *ucounts)
39 dec_ucount(ucounts, UCOUNT_INOTIFY_INSTANCES);
42 static inline struct ucounts *inc_inotify_watches(struct ucounts *ucounts)
44 return inc_ucount(ucounts->ns, ucounts->uid, UCOUNT_INOTIFY_WATCHES);
47 static inline void dec_inotify_watches(struct ucounts *ucounts)
49 dec_ucount(ucounts, UCOUNT_INOTIFY_WATCHES);
51 #endif