From: Borislav Petkov Date: Thu, 21 Mar 2013 17:16:57 +0000 (+0100) Subject: x86/mm/cpa: Cleanup split_large_page() and its callee X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~110^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5952886bfeec065041d04dfcc2693b581e8f2424;p=pandora-kernel.git x86/mm/cpa: Cleanup split_large_page() and its callee 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 Acked-by: Thomas Gleixner Link: http://lkml.kernel.org/r/1363886217-24703-1-git-send-email-bp@alien8.de Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed