Re: [PATCH 3/8] mm/khugepaged: introduce a count_collapse_event() helper

From: Baolin Wang

Date: Fri Jul 10 2026 - 03:50:42 EST




On 7/6/26 11:44 PM, Nico Pache wrote:
Provide a simple helper function to help reduce a often used, and
duplicate pattern across the khugepaged code.

When collapsing to a PMD we need to record a vm_event and the mTHP_stat
event. When doing mTHP collapse we only update the mTHP stat.

Signed-off-by: Nico Pache <npache@xxxxxxxxxx>
---

LGTM.
Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>