[PATCH] inotify: IN_DELETE events missing
commit7a2bd3f7efa86e8b56482a8f8948c8b222064a67
authorAmy Griffis <amy.griffis@hp.com>
Fri, 31 Mar 2006 10:30:54 +0000 (31 02:30 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 31 Mar 2006 20:18:55 +0000 (31 12:18 -0800)
tree34a90c6b4f08efb1b7f3ca6face4879164c28e15
parent094e320d761dae5816d8faa695b0509eea79c108
[PATCH] inotify: IN_DELETE events missing

IN_DELETE events are no longer generated for the removal of a file from a
watched directory.

This seems to be a result of clearing DCACHE_INOTIFY_PARENT_WATCHED in
d_delete() directly before calling fsnotify_nameremove().

Assuming the flag doesn't need to be cleared before dentry_iput(), this
should do the trick.

Signed-off-by: Amy Griffis <amy.griffis@hp.com>
Cc: John McCutchan <ttb@tentacle.dhs.org>
Acked-by: Robert Love <rml@novell.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/dcache.c