|
@@ -468,7 +468,7 @@ struct mem_size_stats {
|
|
|
static void smaps_account(struct mem_size_stats *mss, struct page *page,
|
|
|
bool compound, bool young, bool dirty)
|
|
|
{
|
|
|
- int i, nr = compound ? HPAGE_PMD_NR : 1;
|
|
|
+ int i, nr = compound ? 1 << compound_order(page) : 1;
|
|
|
unsigned long size = nr * PAGE_SIZE;
|
|
|
|
|
|
if (PageAnon(page))
|