vfs: push dentry_unhash on rmdir into file systems
[deliverable/linux.git] / fs / logfs / dir.c
index f9ddf0c388c8b83c50faf148b3b5b1dcc1c7194b..2b32734cd31a3b3a5a3ab9ef5b7abbc7cb221c0f 100644 (file)
@@ -92,7 +92,7 @@ static int beyond_eof(struct inode *inode, loff_t bix)
  * so short names (len <= 9) don't even occupy the complete 32bit name
  * space.  A prime >256 ensures short names quickly spread the 32bit
  * name space.  Add about 26 for the estimated amount of information
- * of each character and pick a prime nearby, preferrably a bit-sparse
+ * of each character and pick a prime nearby, preferably a bit-sparse
  * one.
  */
 static u32 hash_32(const char *s, int len, u32 seed)
@@ -273,6 +273,8 @@ static int logfs_rmdir(struct inode *dir, struct dentry *dentry)
 {
        struct inode *inode = dentry->d_inode;
 
+       dentry_unhash(dentry);
+
        if (!logfs_empty_dir(inode))
                return -ENOTEMPTY;
 
This page took 0.042732 seconds and 5 git commands to generate.