Re: page_launder() bug

David S. Miller
2001-05-09T21:09:06Z

Marcelo Tosatti writes:
> > Let me state it a different way, how is the new writepage() framework
> > going to do things like ignore the referenced bit during page_launder
> > for dead swap pages?
>
> Its not able to ignore the referenced bit.
>
> I know we want that, but I can't see any clean way of doing that.

Unfortunately, one way would involve pushing the referenced bit check
into the writepage() method. But that is the only place we have the
kind of information necessary to make these decisions.

This is exactly the kind of issue Linus and myself were talking
about when the "cost analysis" parts of thie discussion began.

Later,
David S. Miller
davem@redhat.com