Re: innd mmap bug in 2.4.0-test12

Dan Aloni
2000-12-28T01:16:33Z

On Wed, 27 Dec 2000, Philipp Rumpf wrote:

> On Wed, Dec 27, 2000 at 03:41:04PM -0800, Linus Torvalds wrote:
> > It must be wrong.
> >
> > If we have a dirty page on the LRU lists, that page _must_ have a mapping.
>
> What about pages with a mapping but without a writepage function ? or pages
> whose writepage function fails ? The current code seems to simply put the
> page onto the active list in that case, which seems just as wrong to me.

I noticed the offset of 'mapping' in struct page doesn't match the offset
which get resolved at obsolute address 0x0000000c according to the Oops,
but it does matches the offset of a_ops in struct address_space, which
makes me wonder if it's possible that a_ops == NULL. Suggestions?

--
Dan Aloni
dax@karrde.org