]> git.karo-electronics.de Git - karo-tx-linux.git/commit
inotify, fanotify: replace fsnotify_put_group() with fsnotify_destroy_group()
authorLino Sanfilippo <LinoSanfilippo@gmx.de>
Tue, 14 Jun 2011 15:29:45 +0000 (17:29 +0200)
committerEric Paris <eparis@redhat.com>
Mon, 26 Mar 2012 15:15:46 +0000 (11:15 -0400)
commit0520bffba9685d88ad68ede4a41abd08a3e9684e
treeb72a35585333ea8758c4d6fb90d84aef050f0ce3
parentc16fa4f2ad19908a47c63d8fa436a1178438c7e7
inotify, fanotify: replace fsnotify_put_group() with fsnotify_destroy_group()

Currently in fsnotify_put_group() the ref count of a group is decremented and if
it becomes 0 fsnotify_destroy_group() is called. Since a groups ref count is only
at group creation set to 1 and never increased after that a call to fsnotify_put_group()
always results in a call to fsnotify_destroy_group().
With this patch fsnotify_destroy_group() is called directly.

Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: Eric Paris <eparis@redhat.com>
fs/notify/fanotify/fanotify_user.c
fs/notify/group.c
fs/notify/inotify/inotify_user.c
include/linux/fsnotify_backend.h