Re: [PATCH] x86, cpa: Cleanup split_large_page and its callee

From: Thomas Gleixner
Date: Tue Mar 26 2013 - 16:56:21 EST


On Thu, 21 Mar 2013, Borislav Petkov wrote:

> From: Borislav Petkov <bp@xxxxxxx>
>
> So basically we're generating the pte_t * from a struct page and we're
> handing it down to the __split_large_page internal version which then
> goes and gets back struct page * from it because it needs it.
>
> Change the caller to hand down struct page * directly and the callee can
> compute the pte_t itself.
>
> Net save is one virt_to_page() call and simpler code. While at it, make
> __split_large_page static.
>
> Signed-off-by: Borislav Petkov <bp@xxxxxxx>

Acked-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/