aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/block
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2015-08-14 14:58:50 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2015-08-19 10:41:19 +0200
commit78fb907626dccfeee6f4213c649606e9ba49c6bc (patch)
treebc164fa538b3d8b28a7c772a4e3f7fbde067ec24 /drivers/s390/block
parents390/pci: move debug messages to debugfs (diff)
downloadlinux-dev-78fb907626dccfeee6f4213c649606e9ba49c6bc.tar.xz
linux-dev-78fb907626dccfeee6f4213c649606e9ba49c6bc.zip
s390/mm: simplify page table alloc/free code
With the removal of the dynamic reallocation of page tables for KVM (see git commit 0b46e0a3ec0d7a04af6a091354f1b5e1b952d70a) the page table allocation / freeing code can be simplified. The page table free code can now use the alloc_pgste bit in the mm context to decide if a page table is 2K or 4K, there is no mix of different sized page tables anymore. This eliminates the need to use "page->_mapcount == 0" to check for 4K page table. Use the lower two bits in page->_mapcount to indicate which 2K fragments of the 4K page are in use. As 31-bit support is gone, remove the two defines ALLOC_ORDER and FRAG_MASK and use the constants directly where appropriate. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions