commit | f0003cd2ba0252a1236c86dce24239d0d74c1956 | [log] [tgz] |
---|---|---|
author | Andrea Arcangeli <aarcange@redhat.com> | Sat Jan 23 18:42:25 2021 -0500 |
committer | Andrea Arcangeli <aarcange@redhat.com> | Sat Nov 11 22:03:37 2023 -0500 |
tree | 7134854b6eb6a82237efe4a702ac4e3273c589f3 | |
parent | d54319eaf2ede87b1d39d4fc9a54ccc380b7e02b [diff] |
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>