diff options
author | Eric Paris <eparis@redhat.com> | 2009-05-21 23:01:26 +0200 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2009-06-11 20:57:53 +0200 |
commit | 3be25f49b9d6a97eae9bcb96d3292072b7658bd8 (patch) | |
tree | 36f7d96481a47a6bde3c2f961346e940698111e0 /fs/notify/fsnotify.h | |
parent | fsnotify: unified filesystem notification backend (diff) | |
download | linux-3be25f49b9d6a97eae9bcb96d3292072b7658bd8.tar.xz linux-3be25f49b9d6a97eae9bcb96d3292072b7658bd8.zip |
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; extern struct list_head fsnotify_groups; /* all bitwise OR of all event types (FS_*) for all fsnotify_groups */ extern __u32 fsnotify_mask; + +/* final kfree of a group */ +extern void fsnotify_final_destroy_group(struct fsnotify_group *group); +/* run the list of all marks associated with inode and flag them to be freed */ +extern void fsnotify_clear_marks_by_inode(struct inode *inode); #endif /* __FS_NOTIFY_FSNOTIFY_H_ */ |