diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2015-01-19 19:10:53 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2015-01-19 19:13:32 +1100 |
commit | 8ba95ab22ab7d66b273e85ea89c272ff6397e062 (patch) | |
tree | 305c795306d8b9b325f691866c8636331c958434 | |
parent | 9f1b9190f145012f87e22812d58a48719d1395ba (diff) |
mm: account pmd page tables to the process fix
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
-rw-r--r-- | mm/mmap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/mmap.c b/mm/mmap.c index 6a7d36d133fb..25271805ab39 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -2854,8 +2854,10 @@ void exit_mmap(struct mm_struct *mm) WARN_ON(atomic_long_read(&mm->nr_ptes) > round_up(FIRST_USER_ADDRESS, PMD_SIZE) >> PMD_SHIFT); +#ifdef PUD_SHIFT WARN_ON(mm_nr_pmds(mm) > round_up(FIRST_USER_ADDRESS, PUD_SIZE) >> PUD_SHIFT); +#endif } /* Insert vm structure into process list sorted by address |