2002-11-15 11:02:07

by Stephen C. Tweedie

[permalink] [raw]
Subject: [PATCH] Orlov allocator directory accounting bug

Hi,

In looking at the fix for the ext3 Orlov double-accounting bug, I
noticed a change to the sb->s_dir_count accounting, restoring a
missing s_dir_count++ when we allocate a new directory.

However, I can't find anywhere in the code where we decrement this
again on directory deletion, neither in ext2 nor in ext3, in 2.4 nor
in 2.5.

Patch below is against Ted's 2.4 Orlov-for-ext3 backport, but it looks
like we need something similar in both ext2 and ext3 in 2.5, too.

--Stephen


Attachments:
(No filename) (485.00 B)
4200-orlov-dircount.patch (568.00 B)
Download all attachments