It gets to close some too. Normally just the directories in the path to
the file(s) being modified would be open.
Good point about the timing. A directory should not disappear before an
in-flight notification has been serviced. I doubt the current scheme
enforces this. There is no more room for 'works most of the time' in
this than there is in our memory page handling.
> It would be much, much more reliable to do a walk over d_parent in
> dnotify.c. Your idea is a nice way to flag kernel dentries such that
> you don't do d_parent walks unnecessarily.
It's bottom-up vs top-down. It's worth analyzing the top-down approach
a little more, it does solve a lot of problems (and creates some as you
pointed out, or at least makes some existing problems more obvious).
For make it's really quite nice. The make daemon only needs to register
in the top level directory of the source tree. I think this solves the
hard link problem too, because each path that's interested in
notification will receive it.
-- Daniel - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/