--- linux-2.4-ext3merge/fs/ext3/ialloc.c.=K0004=.orig 2003-03-13 16:22:37.000000000 +0000 +++ linux-2.4-ext3merge/fs/ext3/ialloc.c 2003-03-13 16:22:45.000000000 +0000 @@ -262,9 +262,11 @@ void ext3_free_inode (handle_t *handle, if (gdp) { gdp->bg_free_inodes_count = cpu_to_le16( le16_to_cpu(gdp->bg_free_inodes_count) + 1); - if (is_directory) + if (is_directory) { gdp->bg_used_dirs_count = cpu_to_le16( le16_to_cpu(gdp->bg_used_dirs_count) - 1); + EXT3_SB(sb)->s_dir_count--; + } } BUFFER_TRACE(bh2, "call ext3_journal_dirty_metadata"); err = ext3_journal_dirty_metadata(handle, bh2);