linux/fs/notify
Eric Paris 90b1e7a578 fsnotify: allow marks to not pin inodes in core
inotify marks must pin inodes in core.  dnotify doesn't technically need to
since they are closed when the directory is closed.  fanotify also need to
pin inodes in core as it works today.  But the next step is to introduce
the concept of 'ignored masks' which is actually a mask of events for an
inode of no interest.  I claim that these should be liberally sent to the
kernel and should not pin the inode in core.  If the inode is brought back
in the listener will get an event it may have thought excluded, but this is
not a serious situation and one any listener should deal with.

This patch lays the ground work for non-pinning inode marks by using lazy
inode pinning.  We do not pin a mark until it has a non-zero mask entry.  If a
listener new sets a mask we never pin the inode.

Signed-off-by: Eric Paris <eparis@redhat.com>
2010-07-28 09:58:59 -04:00
..
dnotify fsnotify: allow marks to not pin inodes in core 2010-07-28 09:58:59 -04:00
fanotify fsnotify: allow marks to not pin inodes in core 2010-07-28 09:58:59 -04:00
inotify fsnotify: allow marks to not pin inodes in core 2010-07-28 09:58:59 -04:00
fsnotify.c fsnotify: Infrastructure for per-mount watches 2010-07-28 09:58:57 -04:00
fsnotify.h fsnotify: allow marks to not pin inodes in core 2010-07-28 09:58:59 -04:00
group.c fsnotify: rename mark_entry to just mark 2010-07-28 09:58:53 -04:00
inode_mark.c fsnotify: allow marks to not pin inodes in core 2010-07-28 09:58:59 -04:00
Kconfig fanotify: fscking all notification system 2010-07-28 09:58:54 -04:00
Makefile fsnotify: vfsmount marks generic functions 2010-07-28 09:58:57 -04:00
mark.c fsnotify: allow marks to not pin inodes in core 2010-07-28 09:58:59 -04:00
notification.c fanotify: Add pids to events 2010-07-28 09:58:56 -04:00
vfsmount_mark.c fsnotify: vfsmount marks generic functions 2010-07-28 09:58:57 -04:00