]> git.baikalelectronics.ru Git - kernel.git/commit
lguest: use set_pte/set_pmd uniformly for real page table entries
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 24 Sep 2009 04:26:45 +0000 (22:26 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 23 Sep 2009 12:56:46 +0000 (22:26 +0930)
commit4b5223ba2257643d6b75871b629031607b65130a
treefc20b6da34016e03faa914743eeaafe489e38443
parentcb8e47a96fd6ae4d4dfc64ca907518d3f3b0b120
lguest: use set_pte/set_pmd uniformly for real page table entries

If we're building a pte, we can use simple assigment; only use set_pte
etc. when we're actually going to use that destination as a PTE.  I
don't know that we'll ever run under Xen, but it's neater.

And use set_pte/set_pmd rather than assuming native_ versions, even
though that's probably true for most people.

(Includes compile fix by Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Matias Zabaljauregui <zabaljauregui@gmail.com>
Cc: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
drivers/lguest/page_tables.c