]> bbs.cooldavid.org Git - net-next-2.6.git/commit
fsnotify: add groups to fsnotify_inode_groups when registering inode watch
authorEric Paris <eparis@redhat.com>
Fri, 18 Dec 2009 02:24:23 +0000 (21:24 -0500)
committerEric Paris <eparis@redhat.com>
Wed, 28 Jul 2010 13:58:51 +0000 (09:58 -0400)
commit4ca763523e040dc61191d4866a82981a5d30a4e9
tree9b02105e7c84853dd89eff16837a9b7fba2a1050
parent36fddebaa8a9186d4f5817ab798a83400b2fb2e7
fsnotify: add groups to fsnotify_inode_groups when registering inode watch

Currently all fsnotify groups are added immediately to the
fsnotify_inode_groups list upon creation.  This means, even groups with no
watches (common for audit) will be on the global tracking list and will
get checked for every event.  This patch adds groups to the global list on
when the first inode mark is added to the group.

Signed-of-by: Eric Paris <eparis@redhat.com>
fs/notify/fsnotify.h
fs/notify/group.c
fs/notify/inode_mark.c