From patchwork Sat May 28 16:11:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: FanJun Kong X-Patchwork-Id: 12864080 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 56621C433F5 for ; Sat, 28 May 2022 16:12:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A27DB8D0003; Sat, 28 May 2022 12:12:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9D29A8D0002; Sat, 28 May 2022 12:12:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 89B5C8D0003; Sat, 28 May 2022 12:12:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 7AAC58D0002 for ; Sat, 28 May 2022 12:12:39 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay11.hostedemail.com (Postfix) with ESMTP id 454AA80CC5 for ; Sat, 28 May 2022 16:12:39 +0000 (UTC) X-FDA: 79515644838.05.7AD4138 Received: from mail-oo1-f42.google.com (mail-oo1-f42.google.com [209.85.161.42]) by imf31.hostedemail.com (Postfix) with ESMTP id 1325020057 for ; Sat, 28 May 2022 16:12:00 +0000 (UTC) Received: by mail-oo1-f42.google.com with SMTP id s11-20020a4ab54b000000b0035f0178dfcfso1327346ooo.7 for ; Sat, 28 May 2022 09:12:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+CuVbTAvzY+QWUP1IzG5ja4oDWL1lfXVEyJuS0ev3io=; b=MKQC5uQUI9fopxEoV6HKJIQ+w8LTATy9A3QxoxS6fpyrj3Il9Tc8baXe5xRQmqEUq2 yDmNmKEWPGCgnu5KlxSbDEDij1EUCfTV/n6RPHyXXWpppCVL+hbhclzJi0Ez4PLZxfzr oSesYYV1VomSKCXJ5LX53fMUFSUEpn6kv3KKGjy7YQwdeI9nMgxr0HldyvYs72OeCx8P 68orktmsiXNYxjSMx3TzpJCED9k4O59DkJ5n7+Ue8CaK8Mi0nw7T+O3ylH8dPTHKeFKt 42hIZ3xBNvAnj1e0gdJQq3ICfvqIqRpBi/cUutgZuUTRKJQ6e/qAweZDbyVdsWp3RHOq d/gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+CuVbTAvzY+QWUP1IzG5ja4oDWL1lfXVEyJuS0ev3io=; b=yMX9wixPWKivl8bSRxqyC5LxzLqGRLTyqJZdVkbXvZC+87XHZUeMbNOFBmXfTHQHki 1+105VI2b+AeyFULahWNHVUKbs5HGo0Zdpd/pvftzv8Xzk92qCa1M/6B8/0nt4Jdh6PG 5v+s5v7WG5m5mlSmIn2FEfC9+e/gl697TQCPVWy7xzILu5H9o+y7npkrZnGEbBbzQjPa 2L0u2AasWofVz6W4NPZLtimR2b+XuX0Qz3aTlBBHKi8tAZp8Jg1gnRo0a74ieb8wbjV4 IThkki65NkICUso7UWUOVHy/RcZ9MzOhsdOVcyriqd9c2qASaIXMFaUarLSoSrSRmQ3M 4Y8A== X-Gm-Message-State: AOAM5338CoQoBcJvQiWInAjEKbtRTro5uMaelflF4yOEdc4dtWModmfB sHBQx0MqqNoHqbjcywViU3w= X-Google-Smtp-Source: ABdhPJxbMqOKEcdyPh3QlXmXLQy8tFxkS9turoxTy6CWF4Cfw3YXx4xMyHay4iS4unou3SELw1hlWQ== X-Received: by 2002:a4a:430b:0:b0:35e:a582:5ba1 with SMTP id k11-20020a4a430b000000b0035ea5825ba1mr18737312ooj.75.1653754358159; Sat, 28 May 2022 09:12:38 -0700 (PDT) Received: from localhost ([199.180.249.178]) by smtp.gmail.com with ESMTPSA id z10-20020a056870514a00b000f284870a68sm1621842oak.25.2022.05.28.09.12.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 09:12:37 -0700 (PDT) From: bh1scw@gmail.com To: Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Vlastimil Babka Cc: Roman Gushchin , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Muchun Song , Fanjun Kong Subject: [PATCH] mm/slub: replace alloc_pages with folio_alloc Date: Sun, 29 May 2022 00:11:58 +0800 Message-Id: <20220528161157.3934825-1-bh1scw@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 1325020057 X-Stat-Signature: ym4m8si749pubqpfajpiezdednah5qrd Authentication-Results: imf31.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=MKQC5uQU; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf31.hostedemail.com: domain of bh1scw@gmail.com designates 209.85.161.42 as permitted sender) smtp.mailfrom=bh1scw@gmail.com X-Rspam-User: X-HE-Tag: 1653754320-585660 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: Fanjun Kong This patch will use folio allocation functions for allocating pages. Signed-off-by: Fanjun Kong Reported-by: kernel test robot --- mm/slub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index e5535020e0fd..00c4049a17d6 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1794,9 +1794,9 @@ static inline struct slab *alloc_slab_page(gfp_t flags, int node, unsigned int order = oo_order(oo); if (node == NUMA_NO_NODE) - folio = (struct folio *)alloc_pages(flags, order); + folio = (struct folio *)folio_alloc(flags, order); else - folio = (struct folio *)__alloc_pages_node(node, flags, order); + folio = (struct folio *)__folio_alloc_node(node, flags, order); if (!folio) return NULL;