sparc64: Fix executable bit testing in set_pmd_at() paths.
authorDavid S. Miller <davem@davemloft.net>
Mon, 21 Apr 2014 01:55:01 +0000 (21:55 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 May 2014 05:30:36 +0000 (22:30 -0700)
commit5b1e94fa439a3227beefad58c28c17f68287a8e9
tree1629696567bab71bd929bd764b2ffc69a916c20a
parent16ce8a30e6102d7aabd4e4518d255f330290fa3f
sparc64: Fix executable bit testing in set_pmd_at() paths.

This code was mistakenly using the exec bit from the PMD in all
cases, even when the PMD isn't a huge PMD.

If it's not a huge PMD, test the exec bit in the individual ptes down
in tlb_batch_pmd_scan().

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/mm/tlb.c