Re: [RFC] pte equality tests

Andrea Arcangeli (andrea@suse.de)
Sat, 1 Jan 2000 12:52:45 -0500


On Fri, 31 Dec 1999, Jeff Dike wrote:

>I assume that this is because pte_mk* expands into set_pte.

It doesn't.

>Any solution that just invokes pte_val wouldn't have this problem. It would

No, Dave is only worried by doing the additional math before the
comparison. In a system that doesn't hit swap you almost never have to do
the double page-fault because of the pte change, while you would always
compute the math in the common case.

Your suggestion is nicer and make sense but I am not sure if it's
interesting for real world...

Andrea

-
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/