From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0056C433E0 for ; Wed, 27 May 2020 06:45:45 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B3FAB20787 for ; Wed, 27 May 2020 06:45:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="likIzk5A" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B3FAB20787 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 6462B800B7; Wed, 27 May 2020 02:45:45 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5F5B080010; Wed, 27 May 2020 02:45:45 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 53408800B7; Wed, 27 May 2020 02:45:45 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0171.hostedemail.com [216.40.44.171]) by kanga.kvack.org (Postfix) with ESMTP id 4CD5F80010 for ; Wed, 27 May 2020 02:45:45 -0400 (EDT) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 219EC824556B for ; Wed, 27 May 2020 06:45:45 +0000 (UTC) X-FDA: 76861563450.19.cart43_340740d26d50 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin19.hostedemail.com (Postfix) with ESMTP id 000991AD1B4 for ; Wed, 27 May 2020 06:45:44 +0000 (UTC) X-HE-Tag: cart43_340740d26d50 X-Filterd-Recvd-Size: 5314 Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by imf07.hostedemail.com (Postfix) with ESMTP for ; Wed, 27 May 2020 06:45:44 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id y18so11397961pfl.9 for ; Tue, 26 May 2020 23:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=FhCctwpJtiCtMs9VC+6X+PQl7cxVICigfkuhHn4U+Hk=; b=likIzk5AMzU8Bulh0gTFmF5HpfBkKD2R5abeFNSqho7H7rDbLTLcZdPtfCF997rVuc S8lXCIQe2Su7YO3qY+7IxscF5IwPYJpL/8KZdV/BrFsnytqXkkleS3ThIiQfO2mUX+9u dxIJOSPFEKV8AqHoepE1bGwiC/Z89OC/Wbd6dDVmRPi5JXmt8AeoTJjGL5Rqpd3OHn37 hUZKrAWjc3GTMt7aRTczYLcLkv9NpaUgDvFShlzXBePHLcOHkaz1oPWfzNVxFWvjJgqP zKQHXkNm+FnFyMNRywwiLNbu1vlYna2P564aRJVi7ZXCEp4kNXiITAQ1BXzxcmK7dIOX cSrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=FhCctwpJtiCtMs9VC+6X+PQl7cxVICigfkuhHn4U+Hk=; b=AQXr6+GoWs8aCHLKq5q492ewcN7NSjZ5wzJgY7nI2VS4JJN1yo0Jto6+Hcv5eJACh4 Pb5bdSn8Fg9J/jaUNGWmDDsPweb4ATw4UM7DU10vySgzyl6MVuHxfw2atw0NrGJHH/4i qd+GSO69WcA2cistqEVS6NDO8Mv+zv79bV6r6wJkfrVMYsFLufV201o+1i8idy7HlLQy D4azVBeUagcPd9npgi4hLQ+3g3go5SAPfpPQQ721AHCEbZwC88oBAZTTYvAM2G0hlx4n gEpk3gbUu/GGxxzCEuWkeqitRNO1lrEVpm0sVLNNeZIcFXpo1tcW4JVEjCCxGSWWviGO di0w== X-Gm-Message-State: AOAM533V1/o8pp2CCnuOK7xG9GkYkBpUUI5SVSMAyAFRi84zgnRPKGuk /l2AMr+dgnwxvf/w34eU3Ck= X-Google-Smtp-Source: ABdhPJzPgFwUTJsWZYTys0ipZGYUUj8WsS0H5icQu7S26RMbe/Tan7rSsG59BhDd86i3/q2yW52+bA== X-Received: by 2002:a63:5015:: with SMTP id e21mr2587886pgb.54.1590561943286; Tue, 26 May 2020 23:45:43 -0700 (PDT) Received: from localhost.localdomain ([114.206.198.176]) by smtp.gmail.com with ESMTPSA id r13sm443883pgv.50.2020.05.26.23.45.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 May 2020 23:45:42 -0700 (PDT) From: js1304@gmail.com X-Google-Original-From: iamjoonsoo.kim@lge.com To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@lge.com, Vlastimil Babka , Christoph Hellwig , Roman Gushchin , Mike Kravetz , Naoya Horiguchi , Michal Hocko , Joonsoo Kim Subject: [PATCH v2 00/12] clean-up the migration target allocation functions Date: Wed, 27 May 2020 15:44:51 +0900 Message-Id: <1590561903-13186-1-git-send-email-iamjoonsoo.kim@lge.com> X-Mailer: git-send-email 2.7.4 X-Rspamd-Queue-Id: 000991AD1B4 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam02 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Joonsoo Kim This patchset clean-up the migration target allocation functions. * Changes on v2 - add acked-by tags - fix missing compound_head() call for the patch #3 - remove thisnode field on alloc_control and use __GFP_THISNODE directly - fix missing __gfp_mask setup for the patch "mm/hugetlb: do not modify user provided gfp_mask" * Cover-letter Contributions of this patchset are: 1. unify two hugetlb alloc functions. As a result, one is remained. 2. make one external hugetlb alloc function to internal one. 3. unify three functions for migration target allocation. The patchset is based on next-20200526. The patchset is available on: https://github.com/JoonsooKim/linux/tree/cleanup-migration-target-allocation-v2.00-next-20200526 Thanks. Joonsoo Kim (12): mm/page_isolation: prefer the node of the source page mm/migrate: move migration helper from .h to .c mm/hugetlb: introduce alloc_control structure to simplify migration target allocation APIs mm/hugetlb: use provided ac->gfp_mask for allocation mm/hugetlb: unify hugetlb migration callback function mm/hugetlb: make hugetlb migration target allocation APIs CMA aware mm/hugetlb: do not modify user provided gfp_mask mm/migrate: change the interface of the migration target alloc/free functions mm/migrate: make standard migration target allocation functions mm/gup: use standard migration target allocation function mm/mempolicy: use standard migration target allocation function mm/page_alloc: use standard migration target allocation function directly include/linux/hugetlb.h | 33 ++++++--------- include/linux/migrate.h | 44 +++++--------------- include/linux/page-isolation.h | 4 +- mm/compaction.c | 15 ++++--- mm/gup.c | 60 +++++----------------------- mm/hugetlb.c | 91 ++++++++++++++++++++---------------------- mm/internal.h | 12 +++++- mm/memory-failure.c | 14 ++++--- mm/memory_hotplug.c | 10 +++-- mm/mempolicy.c | 38 ++++++------------ mm/migrate.c | 72 +++++++++++++++++++++++++-------- mm/page_alloc.c | 9 ++++- mm/page_isolation.c | 5 --- 13 files changed, 191 insertions(+), 216 deletions(-) -- 2.7.4