]> git.baikalelectronics.ru Git - kernel.git/commit
fs/notify/inotify: decrement user inotify count on close
authorKeith Packard <keithp@keithp.com>
Thu, 2 Jul 2009 04:56:38 +0000 (21:56 -0700)
committerEric Paris <eparis@redhat.com>
Thu, 2 Jul 2009 12:23:00 +0000 (08:23 -0400)
commit2e9557c6863fbcdcf06226b3b7e9a383b75a5e3c
treeee17363d16d584551729ce99a4ac5a77ee8b13fa
parentd61c853608505d9f0f583866c393be134f08f1cb
fs/notify/inotify: decrement user inotify count on close

The per-user inotify_devs value is incremented each time a new file is
allocated, but never decremented. This led to inotify_init failing after a
limited number of calls.

Signed-off-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
fs/notify/inotify/inotify_user.c