diff options
author | Eric Paris <eparis@redhat.com> | 2009-05-21 17:01:26 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2009-06-11 14:57:53 -0400 |
commit | 3be25f49b9d6a97eae9bcb96d3292072b7658bd8 (patch) | |
tree | 36f7d96481a47a6bde3c2f961346e940698111e0 /fs/notify/fsnotify.h | |
parent | 90586523eb4b349806887c62ee70685a49415124 (diff) |
fsnotify: add marks to inodes so groups can interpret how to handle those inodes
This patch creates a way for fsnotify groups to attach marks to inodes.
These marks have little meaning to the generic fsnotify infrastructure
and thus their meaning should be interpreted by the group that attached
them to the inode's list.
dnotify and inotify will make use of these markings to indicate which
inodes are of interest to their respective groups. But this implementation
has the useful property that in the future other listeners could actually
use the marks for the exact opposite reason, aka to indicate which inodes
it had NO interest in.
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 'fs/notify/fsnotify.h')
-rw-r--r-- | fs/notify/fsnotify.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/notify/fsnotify.h b/fs/notify/fsnotify.h index c6a8bd476572..8ebcbe893c91 100644 --- a/fs/notify/fsnotify.h +++ b/fs/notify/fsnotify.h | |||
@@ -12,4 +12,9 @@ extern struct srcu_struct fsnotify_grp_srcu; | |||
12 | extern struct list_head fsnotify_groups; | 12 | extern struct list_head fsnotify_groups; |
13 | /* all bitwise OR of all event types (FS_*) for all fsnotify_groups */ | 13 | /* all bitwise OR of all event types (FS_*) for all fsnotify_groups */ |
14 | extern __u32 fsnotify_mask; | 14 | extern __u32 fsnotify_mask; |
15 | |||
16 | /* final kfree of a group */ | ||
17 | extern void fsnotify_final_destroy_group(struct fsnotify_group *group); | ||
18 | /* run the list of all marks associated with inode and flag them to be freed */ | ||
19 | extern void fsnotify_clear_marks_by_inode(struct inode *inode); | ||
15 | #endif /* __FS_NOTIFY_FSNOTIFY_H_ */ | 20 | #endif /* __FS_NOTIFY_FSNOTIFY_H_ */ |