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>
Mon, 21 Mar 2022 17:01:35 +0000 (13:01 -0400)
commitc79b7b96db8b1240887686720cd149f2c5d979d6
tree0e88e7a5009ad790d18315c4448706583b1412bc
parent343b288834e84d0b175b20b4f48277bc33260986
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