Miklos Szeredi: > No it doesn't. dentry_unhash() doesn't drop the dentry from the hash > unless it has no other references, cwd being one such ref. I see. When chdir() completets before vfs_rename_dir(), the dir will not be unhashed. It is OK. Even if the dir is unhashed temporary before chdir(), then the lookup fallback to ref-walk and i_mutex protects. It is OK too. Thank you. J. R. Okajima -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html