linux/fs/notify
Eric Paris 7131485a93 fsnotify: mount point listeners list and global mask
currently all of the notification systems implemented select which inodes
they care about and receive messages only about those inodes (or the
children of those inodes.)  This patch begins to flesh out fsnotify support
for the concept of listeners that want to hear notification for an inode
accessed below a given monut point.  This patch implements a second list
of fsnotify groups to hold these types of groups and a second global mask
to hold the events of interest for this type of group.

The reason we want a second group list and mask is because the inode based
notification should_send_event support which makes each group look for a mark
on the given inode.  With one nfsmount listener that means that every group would
have to take the inode->i_lock, look for their mark, not find one, and return
for every operation.   By seperating vfsmount from inode listeners only when
there is a inode listener will the inode groups have to look for their
mark and take the inode lock.  vfsmount listeners will have to grab the lock and
look for a mark but there should be fewer of them, and one vfsmount listener
won't cause the i_lock to be grabbed and released for every fsnotify group
on every io operation.

Signed-off-by: Eric Paris <eparis@redhat.com>
2010-07-28 09:58:52 -04:00
..
dnotify fsnotify: drop mask argument from fsnotify_alloc_group 2010-07-28 09:58:51 -04:00
inotify fsnotify: drop mask argument from fsnotify_alloc_group 2010-07-28 09:58:51 -04:00
fsnotify.c fsnotify: mount point listeners list and global mask 2010-07-28 09:58:52 -04:00
fsnotify.h fsnotify: mount point listeners list and global mask 2010-07-28 09:58:52 -04:00
group.c fsnotify: mount point listeners list and global mask 2010-07-28 09:58:52 -04:00
inode_mark.c fsnotify: mount point listeners list and global mask 2010-07-28 09:58:52 -04:00
Kconfig fsnotify: use def_bool in kconfig instead of letting the user choose 2009-07-21 15:26:26 -04:00
Makefile fsnotify: add marks to inodes so groups can interpret how to handle those inodes 2009-06-11 14:57:53 -04:00
notification.c fsnotify: lock annotation for event replacement 2010-07-28 09:58:50 -04:00