diff options
| author | Miklos Szeredi <mszeredi@redhat.com> | 2025-01-29 17:57:59 +0100 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2025-02-04 11:14:47 +0100 |
| commit | b944249bcea97f2f6229852ae3f05f7acdcb0681 (patch) | |
| tree | fa651c889ed3eaaad03d280aae790169b974458a /fs/mount.h | |
| parent | 2014c95afecee3e76ca4a56956a936e23283f05b (diff) | |
fsnotify: add mount notification infrastructure
This is just the plumbing between the event source (fs/namespace.c) and the
event consumer (fanotify). In itself it does nothing.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Link: https://lore.kernel.org/r/20250129165803.72138-2-mszeredi@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/mount.h')
| -rw-r--r-- | fs/mount.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/mount.h b/fs/mount.h index ffb613cdfeee..82aa3bad7cf5 100644 --- a/fs/mount.h +++ b/fs/mount.h @@ -21,6 +21,10 @@ struct mnt_namespace { struct rcu_head mnt_ns_rcu; }; u64 event; +#ifdef CONFIG_FSNOTIFY + __u32 n_fsnotify_mask; + struct fsnotify_mark_connector __rcu *n_fsnotify_marks; +#endif unsigned int nr_mounts; /* # of mounts in the namespace */ unsigned int pending_mounts; struct rb_node mnt_ns_tree_node; /* node in the mnt_ns_tree */ |