]> rtime.felk.cvut.cz Git - linux-imx.git/commit
x86/mm/cpa: Cleanup split_large_page() and its callee
authorBorislav Petkov <bp@suse.de>
Thu, 21 Mar 2013 17:16:57 +0000 (18:16 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 10 Apr 2013 12:39:08 +0000 (14:39 +0200)
commit5952886bfeec065041d04dfcc2693b581e8f2424
treead933521904188465cf9c032f8b086caa67b1af8
parentec7fd34425f6536ed4b3548e7aa712ee2718189c
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 <bp@suse.de>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1363886217-24703-1-git-send-email-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/pgtable_types.h
arch/x86/mm/pageattr.c