Re: nr_files in linux-2.4.0-test2

From: Chris Mason (mason@suse.com)
Date: Mon Jun 26 2000 - 10:26:54 EST


On Sun, 25 Jun 2000, Arjan van de Ven wrote:

> In article <Pine.LNX.4.10.10006251321150.11318-100000@home.suse.com> you wrote:
>
> > Hello,
>
> > Looks as though nr_files in fs/file_table.c is not being initialized
> > anymore, on my box it is starting at a large negative number. So, was
> > this supposed to be zero filled elsewhere, or do we just need the
> > following patch?
>
> This also might be caused by the thing Tigran found: some portions of the
> kernel expect that
>
> int x;
> int y;
> int z;
>
> are consecutive in memory when they export it to /proc.
>
Ahh, ok, this look like it. These variables used to be in a struct, but
are now just individual ints. Extra testing with printks shows them all
at 0, so it is just /proc that is wrong.

-chris

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 26 2000 - 21:00:09 EST