On Tue, 24 May 2011, Jan Kara wrote: > On Tue 24-05-11 13:06:17, Sage Weil wrote: > > ext3 has no problems with lingering references to unlinked directory > > inodes. > OK, so if I understand right, dentry_unhash() has been there only so that > filesystem can detect whether (something under) removed directory is in > use? So filesystems which can happily handle unlinked but open directories > don't need it, right? If that's the case, you can add: > Acked-by: Jan Kara <jack@xxxxxxx> > to this patch and also the ext2 version. Right. Basically, a simple fs can return EBUSY if the dentry is hashed (implying there are still references) and not worry about a racing process traversing into the directory while rmdir is running. A sane fs can handle references and doesn't care if a racing process traverses into the dir before the ->rmdir method completes. Thanks! sage -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html