Re: [v2 PATCH 2/2] mm: thp: inc counter for collapsed shmem THP
From: Kirill A. Shutemov
Date: Fri Jun 22 2018 - 04:00:25 EST
On Thu, Jun 21, 2018 at 11:15:49PM +0000, yang.shi@xxxxxxxxxxxxxxxxx wrote:
> /sys/kernel/mm/transparent_hugepage/khugepaged/pages_collapsed is used
> to record the counter of collapsed THP, but it just gets inc'ed in
> anonymous THP collapse path, do this for shmem THP collapse too.
>
> Signed-off-by: Yang Shi <yang.shi@xxxxxxxxxxxxxxxxx>
> Cc: Hugh Dickins <hughd@xxxxxxxxxx>
> Cc: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
Acked-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
--
Kirill A. Shutemov