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