[PATCH] tmpfs: Decrement i_nlink correctly in shmem_rmdir()
[linux-2.6.git] / mm / shmem.c
index 73f7a9d..1e43c8a 100644 (file)
@@ -1780,6 +1780,7 @@ static int shmem_rmdir(struct inode *dir, struct dentry *dentry)
        if (!simple_empty(dentry))
                return -ENOTEMPTY;
 
+       dentry->d_inode->i_nlink--;
        dir->i_nlink--;
        return shmem_unlink(dir, dentry);
 }