Re: What's a "pmd"?

Linus Torvalds (torvalds@linux.cs.helsinki.fi)
Sat, 16 Mar 1996 11:07:00 +0200 (EET)


On Fri, 15 Mar 1996, Joerg Pommnitz wrote:

> Date: Fri, 15 Mar 1996 16:56:15 +0100 (CET)
> From: Joerg Pommnitz <pommnitz@heidelbg.ibm.com>
> To: Harvey Fishman <fishman@panix.com>
> Cc: linux-kernel Mailinglist <linux-kernel@vger.rutgers.edu>
> Subject: Re: What's a "pmd"?
>
> >
> > I am getting a whole slew of messages about bad ones (pmds) when I reboot
> > from 1.3.74. The two normal messages about termination appear, there are a
> > few seconds of pause, and then a string of messages like
> >
> > use_pmd (bad pmd <an address>)
> >
> > Seems to work correctly after the batch of grey-hair generators though. I
> > have never seen this before...

Ahh.. I think it's the swap-off code in "try_to_unuse()" (or
"unuse_process()" to be more exact), in mm/swapfile.c.

At the top of unuse_process() there is a test like this:

if (!mm)
return 0;

Could you change that to

if (!mm && mm != &init_mm)
return 0;

and see if that fixes the problem?

Linus