mm/vmscan: Account large folios correctly
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 17 Jan 2022 19:46:55 +0000 (14:46 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 1 Mar 2022 02:01:35 +0000 (21:01 -0500)
commit6a9d39c780d7105d59c9e6cd803db866796d2dc8
tree0123645cb205cb2406c1e18051a567f7a4af136c
parent7e8dbad11dd35d72b8306032adf24897cd722bb5
mm/vmscan: Account large folios correctly

The statistics we gather should count the number of pages, not the
number of folios.  The logic in this function is somewhat convoluted,
but even if we split the folio, I think the accounting is now correct.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
mm/vmscan.c