diff options
author | Eric Paris <eparis@redhat.com> | 2009-05-21 17:01:58 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2009-06-11 14:57:54 -0400 |
commit | 164bc6195139047faaf5ada1278332e99494803b (patch) | |
tree | fdc0e31f9dc15796a4777ed917533091797b8b69 /include/linux/fsnotify_backend.h | |
parent | 1ef5f13c6c8acd3fd10db9f1743f3b4cf30a4abb (diff) |
fsnotify: handle filesystem unmounts with fsnotify marks
When an fs is unmounted with an fsnotify mark entry attached to one of its
inodes we need to destroy that mark entry and we also (like inotify) send
an unmount event.
Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/fsnotify_backend.h')
-rw-r--r-- | include/linux/fsnotify_backend.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h index efdf9e442d86..d2c0ee30e618 100644 --- a/include/linux/fsnotify_backend.h +++ b/include/linux/fsnotify_backend.h | |||
@@ -336,6 +336,7 @@ extern void fsnotify_destroy_mark_by_entry(struct fsnotify_mark_entry *entry); | |||
336 | extern void fsnotify_clear_marks_by_group(struct fsnotify_group *group); | 336 | extern void fsnotify_clear_marks_by_group(struct fsnotify_group *group); |
337 | extern void fsnotify_get_mark(struct fsnotify_mark_entry *entry); | 337 | extern void fsnotify_get_mark(struct fsnotify_mark_entry *entry); |
338 | extern void fsnotify_put_mark(struct fsnotify_mark_entry *entry); | 338 | extern void fsnotify_put_mark(struct fsnotify_mark_entry *entry); |
339 | extern void fsnotify_unmount_inodes(struct list_head *list); | ||
339 | 340 | ||
340 | /* put here because inotify does some weird stuff when destroying watches */ | 341 | /* put here because inotify does some weird stuff when destroying watches */ |
341 | extern struct fsnotify_event *fsnotify_create_event(struct inode *to_tell, __u32 mask, | 342 | extern struct fsnotify_event *fsnotify_create_event(struct inode *to_tell, __u32 mask, |
@@ -365,6 +366,9 @@ static inline u32 fsnotify_get_cookie(void) | |||
365 | return 0; | 366 | return 0; |
366 | } | 367 | } |
367 | 368 | ||
369 | static inline void fsnotify_unmount_inodes(struct list_head *list) | ||
370 | {} | ||
371 | |||
368 | #endif /* CONFIG_FSNOTIFY */ | 372 | #endif /* CONFIG_FSNOTIFY */ |
369 | 373 | ||
370 | #endif /* __KERNEL __ */ | 374 | #endif /* __KERNEL __ */ |