[Fwd: [RFC][PATCH] flush_hash_page]
Joel Schopp
jschopp at austin.ibm.com
Tue Sep 14 09:01:22 EST 2004
> First of all, if you do that, doesn't it assume that all ptes that are
> passed in are large pages? I don't think that's correct.
>
> Also, think about how huge pages are implemented in Linux. Do huge
> pages really even get Linux ptes, or just pmds that act like ptes?
It appears that large pages only have pmds (as evidenced by hugepte_t
being an int and not a long among other things). It turns out there
already is a flush_hash_hugepage that does what I am trying to do.
Figuring out which to call isn't too bad either.
if(in_hugepage_area(context, ea)) should do the trick.
Might be nice to clean up flush_hash_page to totally remove the large
variable and associated code, and add a comment about flush_hash_hugepage.
Thanks for your patience while I learn this stuff.
More information about the Linuxppc64-dev
mailing list