commit | 66d4d61c618297c722c15f9c7f37b0387c058ebf | [log] [tgz] |
---|---|---|
author | Andrea Arcangeli <aarcange@redhat.com> | Tue Jan 26 21:59:57 2021 -0500 |
committer | Andrea Arcangeli <aarcange@redhat.com> | Sat Nov 11 22:03:35 2023 -0500 |
tree | 157fddb30a3d851d22a6601d54ed55895cc992f4 | |
parent | f5063bcffc5b98891ca830d9b22cb2fb31fa0c1a [diff] |
mm: thp: introduce page_trans_huge_anon_shared This is the equivalent of "page_trans_huge_mapcount() > 1", but it is allowed to break the loop and it's meant to be used later outside the PT lock in the THP COW path to decide if to take the COW copy path as well as in gup and gup-fast context. Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>