Andrew Morton wrote: > Maybe you're not running applications which install inotify watches. This > is apparently triggerable by doing `touch foo;rm foo;touch foo' in a watched > directory. > > Nick, isn't it simply a matter of.. > Sorry, I forgot about that. With that patch, d_instantiate can still get some warnings. The following one should fix that and also makes the watch creation deletion loop-over-all-dentrys ignore negative dentrys too. I'm not sure what the cleanest way to do this is. I'm fairly sure the vfs guys do not want a DENTRY_INOTIFY_ flag in fs/dcache.c, so I've added a comment there. I also don't know whether or not the inotify guys want parent events on negative entries. They don't appear to now, so I'll take that as a no. After the DENTRY_INOTIFY_PARENT_WATCHED debugging stuff is taken out, that flag will basically be undefined for negative dentrys rather than always clear (after this patch). I'm not sure whether the vfs people consider that to be unclean. -- SUSE Labs, Novell Inc.