hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/fs/notify/fsnotify.h
....@@ -21,6 +21,12 @@
2121 return container_of(conn->obj, struct mount, mnt_fsnotify_marks);
2222 }
2323
24
+static inline struct super_block *fsnotify_conn_sb(
25
+ struct fsnotify_mark_connector *conn)
26
+{
27
+ return container_of(conn->obj, struct super_block, s_fsnotify_marks);
28
+}
29
+
2430 /* destroy all events sitting in this groups notification queue */
2531 extern void fsnotify_flush_notify(struct fsnotify_group *group);
2632
....@@ -43,8 +49,11 @@
4349 {
4450 fsnotify_destroy_marks(&real_mount(mnt)->mnt_fsnotify_marks);
4551 }
46
-/* Wait until all marks queued for destruction are destroyed */
47
-extern void fsnotify_wait_marks_destroyed(void);
52
+/* run the list of all marks associated with sb and destroy them */
53
+static inline void fsnotify_clear_marks_by_sb(struct super_block *sb)
54
+{
55
+ fsnotify_destroy_marks(&sb->s_fsnotify_marks);
56
+}
4857
4958 /*
5059 * update the dentry->d_flags of all of inode's children to indicate if inode cares
....@@ -56,4 +65,6 @@
5665 extern struct fsnotify_event_holder *fsnotify_alloc_event_holder(void);
5766 extern void fsnotify_destroy_event_holder(struct fsnotify_event_holder *holder);
5867
68
+extern struct kmem_cache *fsnotify_mark_connector_cachep;
69
+
5970 #endif /* __FS_NOTIFY_FSNOTIFY_H_ */