mm: thp: optimize total_mapcount() with head_compound_mapcount

total_mapcount doesn't allow tail pages so head_compound_mapcount can
be used instead of compound_mapcount and it's faster.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
1 file changed