/* SPDX-License-Identifier: GPL-2.0 */ #ifndef __FS_NOTIFY_FSNOTIFY_H_ #define __FS_NOTIFY_FSNOTIFY_H_ #include <linux/list.h> #include <linux/fsnotify.h> #include <linux/srcu.h> #include <linux/types.h> #include "../mount.h" struct fsnotify_iter_info { struct fsnotify_mark *inode_mark; struct fsnotify_mark *vfsmount_mark; int srcu_idx; }; /* destroy all events sitting in this groups notification queue */ extern void fsnotify_flush_notify(struct fsnotify_group *group); /* protects reads of inode and vfsmount marks list */ extern struct srcu_struct fsnotify_mark_srcu; /* compare two groups for sorting of marks lists */ extern int fsnotify_compare_groups(struct fsnotify_group *a, struct fsnotify_group *b); /* Destroy all marks connected via given connector */ extern void fsnotify_destroy_marks(struct fsnotify_mark_connector __rcu **connp); /* run the list of all marks associated with inode and destroy them */
static inline void fsnotify_clear_marks_by_inode(struct inode *inode) { fsnotify_destroy_marks(&inode->i_fsnotify_marks); }Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| Jan Kara | 12 | 60.00% | 2 | 66.67% |
| Eric Paris | 8 | 40.00% | 1 | 33.33% |
| Total | 20 | 100.00% | 3 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp |
| Jan Kara | 15 | 65.22% | 2 | 66.67% |
| Andreas Gruenbacher | 8 | 34.78% | 1 | 33.33% |
| Total | 23 | 100.00% | 3 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp |
| Jan Kara | 87 | 50.29% | 9 | 56.25% |
| Eric Paris | 77 | 44.51% | 5 | 31.25% |
| Andreas Gruenbacher | 8 | 4.62% | 1 | 6.25% |
| Greg Kroah-Hartman | 1 | 0.58% | 1 | 6.25% |
| Total | 173 | 100.00% | 16 | 100.00% |