Skip to content
Commit 8c1934c8 authored by Eric Paris's avatar Eric Paris
Browse files

inotify: allow users to request not to recieve events on unlinked children

An inotify watch on a directory will send events for children even if those
children have been unlinked.  This patch add a new inotify flag IN_EXCL_UNLINK
which allows a watch to specificy they don't care about unlinked children.
This should fix performance problems seen by tasks which add a watch to
/tmp and then are overrun with events when other processes are reading and
writing to unlinked files they created in /tmp.

https://bugzilla.kernel.org/show_bug.cgi?id=16296



Requested-by: default avatarMatthias Clasen <mclasen@redhat.com>
Signed-off-by: default avatarEric Paris <eparis@redhat.com>
parent 611da04f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment