Re: page_launder() bug

David S. Miller (davem@redhat.com)
Wed, 9 May 2001 14:08:40 -0700 (PDT)


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/