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)
commitbdae997f44535ac4ebe1e055ffe59eeee946f453
treeee17363d16d584551729ce99a4ac5a77ee8b13fa
parentd960eea974f5e500c0dcb95a934239cc1f481cfd
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