On 2024/6/11 22:38, Zi Yan wrote:
On 11 Jun 2024, at 6:11, Baolin Wang wrote:
Add large folio mapping establishment support for finish_fault() as a
preparation, to support multi-size THP allocation of anonymous shmem pages
in the following patches.
Keep the same behavior (per-page fault) for non-anon shmem to avoid inflating
the RSS unintentionally, and we can discuss what size of mapping to build
when extending mTHP to control non-anon shmem in the future.
Signed-off-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
---
mm/memory.c | 57 +++++++++++++++++++++++++++++++++++++++++++----------
1 file changed, 47 insertions(+), 10 deletions(-)
LGTM. Reviewed-by: Zi Yan <ziy@xxxxxxxxxx>
Thanks Zi for reviewing.