Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3346182ybt; Mon, 22 Jun 2020 23:16:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxUhn1EfL6YUYkztHoDXNB0F3msOicqJwueKxAFMocBQZ8/w9Aymj3bhYVDD4urzZgm2V0 X-Received: by 2002:aa7:d806:: with SMTP id v6mr21066868edq.174.1592893001338; Mon, 22 Jun 2020 23:16:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592893001; cv=none; d=google.com; s=arc-20160816; b=ZAxDP+21vcdGh3ycXBj8sSeT+yfJJIUtQeSjVd5iyTMrB6moznB6KLfEFDM8QgnRWL QQpx7LbpbTsvRkLxVo7tHbhfwgyHvDRQelrwQrU8MTMq3POL1a/4PwQiiUJvmpvAxCtn lRu+2xdf1n1rRl/HLsVrpoCQUbAFangr17L4GLNpp3lei05JjzxoCTqTaO1TarsNp0JU TXgfsLvbJnIGDZqowSKB9KfAlE90r50nhD/vJnKmQ7Fn/+MbEcJnnyYbCMShAgMPc9o8 mjZIlfzjaUtjVzntSKy3FmuvbMWdoDcW/yFTwKO7nfIBiBDHzTa9fIefeD64q5wGpmzs WuTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=IBU7GakV7KRqkfqwiqdSFvKU2H1WKHTR8vXxzKdrT7Q=; b=zzxgao5KRDkYgGprvTXZEpNDiH/VWGBB+3u1ZfG22eofXBgn6tVguusMRaTYNjpaw4 BYxj0cR6pWpiWQLvVbRQRZTJQGAnDBE7PvwJQItpCrTxGTzh8ojLwsj4n9pR2XBv5VoS /nECVtnFep34fXswAcs2YcZf4ouhAD9MBzB4So1VTLrvRI6WKDD3Y1LHkc3NMdCNzbQw iMHn3mlDq5Fz2xi/vgt6UPTA5fxGmBsNvDHpz+wQ/XOSUxkd05ESdAngPe8cZ9wYZcFx 6e5puquLyvGJllGcMlZdQu9NWLZOLtN24eNjU7xzojiVV1dGmEMYwfTEvhiqqLQi8Zet UWow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=il0jMjiW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o20si9748797eju.673.2020.06.22.23.16.18; Mon, 22 Jun 2020 23:16:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=il0jMjiW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730483AbgFWGOZ (ORCPT + 99 others); Tue, 23 Jun 2020 02:14:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728800AbgFWGOZ (ORCPT ); Tue, 23 Jun 2020 02:14:25 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F37DFC061573 for ; Mon, 22 Jun 2020 23:14:24 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id k1so8678887pls.2 for ; Mon, 22 Jun 2020 23:14:24 -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=IBU7GakV7KRqkfqwiqdSFvKU2H1WKHTR8vXxzKdrT7Q=; b=il0jMjiWQVcJ46yNitriB3lqnjNqWNGO3PiE5YAEaz13aZpVbDv3iBGr9L5c2SHpjO 3vsSaXQeQuYMGb6tuO5NRIAfg6kQ0lx9+OF4akxDN6rJIqMmD3lV9vKm2l3Fia/FC2o6 Smy40NlVngjnUWeBYPy44oBZrQ/m+upr8yKrZ7AOrfT25Xs0RsZPjrqlpKDMALljQBZV F4f3i/lZyvW6c8gfHJfzw+S4GTbMLJydVIYjHePfMcWD9OcqI+FLUar5XJPpf7sAGrxB BqzmFmKFt1b+qTYTbH5lVHWyZlocQ6Od1hN/gDeqCLljed09IeU/sic1kuKslGToR3XT YGlQ== 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=IBU7GakV7KRqkfqwiqdSFvKU2H1WKHTR8vXxzKdrT7Q=; b=TGkkE2mycybidhAc/nSMggBuSy3pJbASNbGCn504uRILz59e2IYE2r0vKHaQm2xWoB zlcy4IrJJPapctHNk27bA/7Edoc35SVHtbIc4vKQVxO5DlJC896L5/qUDRQHNf93/xtQ nOVkmoo3Oa2FoYDk3t6wb81zBK42gxpcgzMiDaj4VEPY+qsqlCevHcfDJeuM1BzqQNBW wKHXWcDuMuh6+ZzGe2R+C6SF64d+DssRtBbMRiTfiTLtJuLgwOsFKGlW7WcoV2Ae5+ZH QTat59lIdFLX7QLrbHQ8z6eu2thLt/lJQaJyfzJU/ku8ABh1COoNaYn7wNvE9V7dRaoi SqLQ== X-Gm-Message-State: AOAM530v3TYhUUSnJmVgG/Es4n4+no63fBqw9C8eszg5CIl2ygZkwsVs KGfQ+bljRD4LnZmO2bwy9lY= X-Received: by 2002:a17:902:8304:: with SMTP id bd4mr22262045plb.8.1592892864395; Mon, 22 Jun 2020 23:14:24 -0700 (PDT) Received: from localhost.localdomain ([114.206.198.176]) by smtp.gmail.com with ESMTPSA id m15sm12801093pgv.45.2020.06.22.23.14.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jun 2020 23:14:23 -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 v3 0/8] clean-up the migration target allocation functions Date: Tue, 23 Jun 2020 15:13:40 +0900 Message-Id: <1592892828-1934-1-git-send-email-iamjoonsoo.kim@lge.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joonsoo Kim This patchset clean-up the migration target allocation functions. * Changes on v3 - do not introduce alloc_control for hugetlb functions - do not change the signature of migrate_pages() - rename alloc_control to migration_target_control * Changes on v2 - add acked-by tags - fix missing compound_head() call for patch #3 - remove thisnode field on alloc_control and use __GFP_THISNODE directly - fix missing __gfp_mask setup for 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-20200621. The patchset is available on: https://github.com/JoonsooKim/linux/tree/cleanup-migration-target-allocation-v3.00-next-20200621 Thanks. Joonsoo Kim (8): mm/page_isolation: prefer the node of the source page mm/migrate: move migration helper from .h to .c mm/hugetlb: unify migration callbacks mm/hugetlb: make hugetlb migration callback CMA aware mm/migrate: make a standard migration target allocation function mm/gup: use a standard migration target allocation callback mm/mempolicy: use a standard migration target allocation callback mm/page_alloc: remove a wrapper for alloc_migration_target() include/linux/hugetlb.h | 13 +++--------- include/linux/migrate.h | 34 ++++++------------------------ mm/gup.c | 56 +++++++------------------------------------------ mm/hugetlb.c | 53 ++++++++++++++++++++-------------------------- mm/internal.h | 9 +++++++- mm/memory-failure.c | 8 +++++-- mm/memory_hotplug.c | 14 ++++++++----- mm/mempolicy.c | 29 ++++++------------------- mm/migrate.c | 45 +++++++++++++++++++++++++++++++++++++-- mm/page_alloc.c | 9 ++++++-- mm/page_isolation.c | 5 ----- 11 files changed, 119 insertions(+), 156 deletions(-) -- 2.7.4