.. | .. |
---|
21 | 21 | return container_of(conn->obj, struct mount, mnt_fsnotify_marks); |
---|
22 | 22 | } |
---|
23 | 23 | |
---|
| 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 | + |
---|
24 | 30 | /* destroy all events sitting in this groups notification queue */ |
---|
25 | 31 | extern void fsnotify_flush_notify(struct fsnotify_group *group); |
---|
26 | 32 | |
---|
.. | .. |
---|
43 | 49 | { |
---|
44 | 50 | fsnotify_destroy_marks(&real_mount(mnt)->mnt_fsnotify_marks); |
---|
45 | 51 | } |
---|
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 | +} |
---|
48 | 57 | |
---|
49 | 58 | /* |
---|
50 | 59 | * update the dentry->d_flags of all of inode's children to indicate if inode cares |
---|
.. | .. |
---|
56 | 65 | extern struct fsnotify_event_holder *fsnotify_alloc_event_holder(void); |
---|
57 | 66 | extern void fsnotify_destroy_event_holder(struct fsnotify_event_holder *holder); |
---|
58 | 67 | |
---|
| 68 | +extern struct kmem_cache *fsnotify_mark_connector_cachep; |
---|
| 69 | + |
---|
59 | 70 | #endif /* __FS_NOTIFY_FSNOTIFY_H_ */ |
---|