vfs_unlink() >=2.5.5-pre1 question

Mike Galbraith (mikeg@wen-online.de)
Sat, 30 Mar 2002 14:03:53 +0100 (CET)


Hi,

d_delete() doesn't appear to ever create negative dentries when
called via vfs_unlink() due to the extra reference on the dentry.
In fact, a printk() in the d_delete() spot never ever triggers...

This could explain the behavior change, wherein rm -r on a large
directory no longer works in ramfs/tmpfs, because the dentries are
now destroyed instead of going negative. [1] Is it intentional
that no negative dentries are created via vfs_unlink() method?

-Mike

1. if that's true, memory pressure could make readdir fail too.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/