Skip to content

Commit

Permalink
s390/mm: forward check for huge pmds to pmd_large()
Browse files Browse the repository at this point in the history
We already do the check in pmd_large, so we can just forward the call.

Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Dominik Dingel authored and Linus Torvalds committed Jun 26, 2015
1 parent ce41571 commit cbd7d9c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/s390/mm/hugetlbpage.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,7 @@ pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr)

int pmd_huge(pmd_t pmd)
{
if (!MACHINE_HAS_HPAGE)
return 0;

return !!(pmd_val(pmd) & _SEGMENT_ENTRY_LARGE);
return pmd_large(pmd);
}

int pud_huge(pud_t pud)
Expand Down

0 comments on commit cbd7d9c

Please sign in to comment.