diff options
-rw-r--r-- | fs/proc/task_mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 65a1b6c69c11..71ffc91060f6 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c | |||
@@ -468,7 +468,7 @@ struct mem_size_stats { | |||
468 | static void smaps_account(struct mem_size_stats *mss, struct page *page, | 468 | static void smaps_account(struct mem_size_stats *mss, struct page *page, |
469 | bool compound, bool young, bool dirty) | 469 | bool compound, bool young, bool dirty) |
470 | { | 470 | { |
471 | int i, nr = compound ? HPAGE_PMD_NR : 1; | 471 | int i, nr = compound ? 1 << compound_order(page) : 1; |
472 | unsigned long size = nr * PAGE_SIZE; | 472 | unsigned long size = nr * PAGE_SIZE; |
473 | 473 | ||
474 | if (PageAnon(page)) | 474 | if (PageAnon(page)) |