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 /include/linux/fs.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 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 83d6b4397245..275b0860044c 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -755,6 +755,11 @@ struct inode { | |||
755 | 755 | ||
756 | __u32 i_generation; | 756 | __u32 i_generation; |
757 | 757 | ||
758 | #ifdef CONFIG_FSNOTIFY | ||
759 | __u32 i_fsnotify_mask; /* all events this inode cares about */ | ||
760 | struct hlist_head i_fsnotify_mark_entries; /* fsnotify mark entries */ | ||
761 | #endif | ||
762 | |||
758 | #ifdef CONFIG_DNOTIFY | 763 | #ifdef CONFIG_DNOTIFY |
759 | unsigned long i_dnotify_mask; /* Directory notify events */ | 764 | unsigned long i_dnotify_mask; /* Directory notify events */ |
760 | struct dnotify_struct *i_dnotify; /* for directory notifications */ | 765 | struct dnotify_struct *i_dnotify; /* for directory notifications */ |