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 E3588C433DF for ; Mon, 18 May 2020 01:21:42 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A77CD207ED for ; Mon, 18 May 2020 01:21:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="iEUYT5d3" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A77CD207ED 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 37450900003; Sun, 17 May 2020 21:21:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2FE93900002; Sun, 17 May 2020 21:21:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 19F57900003; Sun, 17 May 2020 21:21:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0216.hostedemail.com [216.40.44.216]) by kanga.kvack.org (Postfix) with ESMTP id EEE47900002 for ; Sun, 17 May 2020 21:21:41 -0400 (EDT) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id A1A1E442C for ; Mon, 18 May 2020 01:21:41 +0000 (UTC) X-FDA: 76828087602.19.can65_83236ee165546 X-HE-Tag: can65_83236ee165546 X-Filterd-Recvd-Size: 4974 Received: from mail-pg1-f194.google.com (mail-pg1-f194.google.com [209.85.215.194]) by imf23.hostedemail.com (Postfix) with ESMTP for ; Mon, 18 May 2020 01:21:41 +0000 (UTC) Received: by mail-pg1-f194.google.com with SMTP id r22so4058152pga.12 for ; Sun, 17 May 2020 18:21:40 -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=EOiAYIbPHXBk/CjBM2wyL2J8T44WPRGVhqC7t2NlRp4=; b=iEUYT5d3lsJutyCK8M2Yt9zzJfR8wnxAu6GipHa+ACUQE6DemN1ok4NyjeuIJ0x7vM XwBCs9FjakumG1QxuimQcV5AVEQ3FwbuG7Q9A8mEZRdDtTa6VdhtRk7A1NnwdLz63+vY khbjrWFUHD61Wcge3L7I8L79pb1f2LruKzzRtEC5eSLleqWmAE9u+WwIQKyB3dB5fFCk f/GyxOzQoNhqAVrlCljpx1mKPYO579ijSuZQaUAofARisp0v1wdB8QKgMcVeYgyUdcV0 fo0NlYqLo8Dvju3IZCnVsOKP/UJ8PjLYgU5DWuoUNkhJZtT4T7iWnLqQ0HhGTfO9iaev JIoQ== 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=EOiAYIbPHXBk/CjBM2wyL2J8T44WPRGVhqC7t2NlRp4=; b=pdEjsjl7nPdtsTABmgzCTlfb7NF7JuY60OdoT0LPlyCBlhQhNroE/2xCpw44C8P8EJ OhRXtR/a6pJjTrH89J4IZ9VX9ElMVO8KMrV0oqoAYrmKwcwO6f891ALJ8fRn3VlabGVY badiTsH4XiWw+4Wjczk690OfYn521yZH8oTsTu9pYZDrj1uyvQ45dyknNlNAbV7v4gEM wSstyRxl8te0FGg4bfEDi9GxLswf6pFEO983Xt4ebuDOePTGZEYPVk2rXr2r9+d8etqv 2WHj5VgUUDEoaYYv4s5XxcqHLP2Ggw6PpC8auQViZdwgnKTtKe8iBgp7EcPPFFRChUdw b65w== X-Gm-Message-State: AOAM532SrBCq7xAbzw07lCxx6OVlF0/1upXh+7LTFmoAwZZ4y4luqfUJ ZJMdsErNj/3913ecWUC9a7Q= X-Google-Smtp-Source: ABdhPJw3PYsUVGZwikbg09dhIpRtwKWlR+3iYbPBHqIJtYgDNJ8rswWLbyMwxRoEw+JcuXFF6O7E8g== X-Received: by 2002:a63:f242:: with SMTP id d2mr13423800pgk.212.1589764900114; Sun, 17 May 2020 18:21:40 -0700 (PDT) Received: from localhost.localdomain ([114.206.198.176]) by smtp.gmail.com with ESMTPSA id fw4sm1544376pjb.31.2020.05.17.18.21.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 May 2020 18:21:39 -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 00/11] clean-up the migration target allocation functions Date: Mon, 18 May 2020 10:20:46 +0900 Message-Id: <1589764857-6800-1-git-send-email-iamjoonsoo.kim@lge.com> X-Mailer: git-send-email 2.7.4 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. 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-20200515. The patchset is available on: https://github.com/JoonsooKim/linux/tree/cleanup-migration-target-allocation-v1.00-next-20200515 Thanks. Joonsoo Kim (11): 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: 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 | 13 +++++- mm/memory-failure.c | 14 ++++--- mm/memory_hotplug.c | 10 +++-- mm/mempolicy.c | 39 ++++++------------ mm/migrate.c | 75 ++++++++++++++++++++++++++-------- mm/page_alloc.c | 9 ++++- mm/page_isolation.c | 5 --- 13 files changed, 196 insertions(+), 216 deletions(-) -- 2.7.4