From patchwork Wed May 15 07:07:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 13664664 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 902C5C25B77 for ; Wed, 15 May 2024 06:42:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id ACA556B010A; Wed, 15 May 2024 02:41:59 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A07446B010F; Wed, 15 May 2024 02:41:59 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 87EDF6B0113; Wed, 15 May 2024 02:41:59 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 55E826B010F for ; Wed, 15 May 2024 02:41:59 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id D0D48C13F1 for ; Wed, 15 May 2024 06:41:57 +0000 (UTC) X-FDA: 82119685074.23.C428060 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf13.hostedemail.com (Postfix) with ESMTP id 7B31620013 for ; Wed, 15 May 2024 06:41:55 +0000 (UTC) Authentication-Results: imf13.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf13.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1715755316; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references; bh=yFC3ef/bocCn9+ITXyNeL8q3kU73TJETgEKqvjgz8yI=; b=dn9eAAYLZHTn4PclitbuusM1RvVj9qrpqf0ras4jSgCnvVHXzUq+EmXK/ycw8oZqG5JQLu lNpS5RmBNT0F2YL5rdDl+yfBzqhRW3SlG96EJ+jADGYPrgZl/rHRCgCGKadDNMOeRET0Kw U7dveL3Hm1r0/32mWqZVXrHgOE9or6c= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf13.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1715755316; a=rsa-sha256; cv=none; b=NKysPjF3zkP2P/pLwzkmYxEZEBqlvqPviJHRXGHFCE/x2LiWop6TAbfIXb1Kmi0bnKg4iY O8Bm7EmbZTHtO+tqItxdjsWR1/zbxHnmo5pc7i3rCdU9J7o7yzRn4v4aMVQH9jq2aaZdiU oiggxJx0UFpTUvMKckm4QPCOD/agrIs= Received: from mail.maildlp.com (unknown [172.19.88.194]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4VfNpP5R4yzvV09; Wed, 15 May 2024 14:38:21 +0800 (CST) Received: from dggpemm100001.china.huawei.com (unknown [7.185.36.93]) by mail.maildlp.com (Postfix) with ESMTPS id 952F3140133; Wed, 15 May 2024 14:41:50 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 15 May 2024 14:41:50 +0800 From: Kefeng Wang To: Andrew Morton CC: Hugh Dickins , , Kefeng Wang Subject: [PATCH 0/4] mm: convert to folio_alloc_mpol() Date: Wed, 15 May 2024 15:07:05 +0800 Message-ID: <20240515070709.78529-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm100001.china.huawei.com (7.185.36.93) X-Stat-Signature: ntpurmgarjo11zgex5ghgzkmrw4hx57g X-Rspamd-Queue-Id: 7B31620013 X-Rspam-User: X-Rspamd-Server: rspam10 X-HE-Tag: 1715755315-984125 X-HE-Meta: U2FsdGVkX1+UkJl/+rAyMjWmtQya4WFrNH1JwjNDWtB2bLKBtDUkm7zKSVuAuU4Lx3pLtu30iNSLMULlhZbI5rWNeubYYloiCvSKcZaUdtEZnGR++XGxQdW55bgowPExYJtgrnMvkf7uvQUpDq/4DpcpS6oh+4B/rIQ6JuN3A0KiakOZ2h/SB1LfDxq/yFLev/tzWPq7ZTUf0QFs7Koa+73TOSlEHqkiSzpnz91lGw6DzPSEwbr0yVW5W0cU0WQfEvLw/En0TOcETRmX8mPq/W/YVQuJ0BuJ+Bj7N2z/8QgXfLGz56lj6x2eiGA2gOhW3ga4fAVw3cwIbk+tKVerdBTRyrMth9SJ8kkzESJZJyPvMpvET8vMl9YctbB9CgTxgA6phw5C0u7tpNI+uIX+8wNNz185w2KMYrOKLw2ITq8wucM7JOqEakyX8T5poGRa/g6fGeTvIDSF92TjTyvniewg33uxUihttCV4lnWTykVWxvOo0Z0ntVCjjuEcfvxksoVdnwKvDH3xHOWkY6puXtlzBs9ah7/pZwMgyDnnx9PIFga0/JaL/QutUynZwQJxv3jVsFVydvU81/lggEVRERthmhFPIzhjg6QWAWFn8tIIjG69Dfj8Q0U/LQ1nXUqfwATIO4OaoF6nIURyJAFG+hJBFHujuAhlyz+f3JIoS6TeKR5ndysjZh+NXs/GYBPJFLSSAeD8BryxmxCbkIjVSh7JZVCeWXyXSHJMDu1RtfGOehkHHLaERO5roFjkJvgP0gZgTXYULEkQi1g0Yxt9gCNmWhyQHFLQQg50A3NIckE1/DXZLyVY6PTnFvKgfas+vvwAqXU/8FQIacbuyWhP4BjWnZL82klj8ihKT0s8jgye8nch0AUqJqAMtw0S7e02Wd+MvXPw7PZWxsPuPZ5iyFp27/h3SKzjxSsnC7Gnb9a2p+xPgKpY/reqVHgrj/+/P3+Az7paMFdDZ2/VieP eS+YpQIg NfAnBr0MHtlHTdrDsZ06RU7Ui9G47GmDeOJ6yzwg4ih+m7gcMZeT1pwf3BtW0DiMFTqpk5oRDawSOliXGqdWmSqj0FqB3VHXZDo9iBB6oliREuVqy9UqWUwyAZ5y5bBYq+5p3LLQmTUp17D+joMKcwIGEhYnTYaI0jib0 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: List-Subscribe: List-Unsubscribe: Kefeng Wang (4): mm: add folio_alloc_mpol() mm: mempolicy: use folio_alloc_mpol_noprof() in vma_alloc_folio_noprof() mm: mempolicy: use folio_alloc_mpol() in alloc_migration_target_by_mpol() mm: shmem: use folio_alloc_mpol() in shmem_alloc_folio() include/linux/gfp.h | 8 ++++++++ mm/mempolicy.c | 18 +++++++++++------- mm/shmem.c | 32 +++++++++----------------------- 3 files changed, 28 insertions(+), 30 deletions(-)