]> bbs.cooldavid.org Git - net-next-2.6.git/commit
sparc32: Kill none_mask, it's bogus.
authorDavid S. Miller <davem@davemloft.net>
Wed, 26 May 2010 06:36:31 +0000 (23:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 May 2010 06:36:31 +0000 (23:36 -0700)
commitc87fe1c05d57e3fecd62e56da1b1ac4291116ebf
tree48b6aa47000becb4ba08c1dc230e1471f64b7b02
parentb1cdc4670b9508fcd47a15fbd12f70d269880b37
sparc32: Kill none_mask, it's bogus.

For some reason, the pte_none() calculation for srmmu sparc32
chips was masking out the top 4 bits.  That doesn't make any
sense, as those are just some of the physical bits of the PTE
encoding.

Furthermore, this mistake breaks things when the offset of of a swap
entry has a large enough offset as reported by Тхай Кирилл.

Sun4c always set it to zero, so it's really completely useless,
kill it.

Reported-by: Тхай Кирилл <tkhai@yandex.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/pgtable_32.h
arch/sparc/mm/srmmu.c
arch/sparc/mm/sun4c.c