projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aea1f79
)
inotify: drop user watch count when a watch is removed
author
Eric Paris
<eparis@redhat.com>
Tue, 7 Jul 2009 14:28:23 +0000
(10:28 -0400)
committer
Eric Paris
<eparis@redhat.com>
Tue, 21 Jul 2009 19:26:26 +0000
(15:26 -0400)
The inotify rewrite forgot to drop the inotify watch use cound when a watch
was removed. This means that a single inotify fd can only ever register a
maximum of /proc/sys/fs/max_user_watches even if some of those had been
freed.
Signed-off-by: Eric Paris <eparis@redhat.com>
fs/notify/inotify/inotify_user.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/notify/inotify/inotify_user.c
b/fs/notify/inotify/inotify_user.c
index ff27a2965844cbc20ea56279cc419ea1c584faf5..1a870f9157b32d6c610dbb91f8f94ef90d11ab41 100644
(file)
--- a/
fs/notify/inotify/inotify_user.c
+++ b/
fs/notify/inotify/inotify_user.c
@@
-404,6
+404,8
@@
skip_send_ignore:
/* removed from idr, drop that reference */
fsnotify_put_mark(entry);
+
+ atomic_dec(&group->inotify_data.user->inotify_watches);
}
/* ding dong the mark is dead */