Re: Suspiciously broken filesystem

Andrew Morton
Wed, 06 Jun 2001 11:09:48 -0000

Nigel Metheringham wrote:
>
> I then installed the ext3 version from sourceforge onto a 2.4.5-ac[78]
> kernel.

That's dangerous. The -ac kernels have a radically different set
of quota code.

One may ask "who cares about quotas?" - well, in -ac, the
i_blocks accounting (which is unrelated to quotas) is hidden
inside the quota calls DQUOT_ALLOC_BLOCK, etc.

However in Linus' kernel, the i_blocks accounting is open-coded
in ext[23].

So a simple merge of the 2.4.5 ext3 onto a -ac kernel
will double-account i_blocks increments and decrements.

Merging the 2.4.5 ext3 onto -ac is tricky - you need to
look at the diff between the two kernels' ext2s and
apply those by hand as well.