Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2369694ioo; Sat, 28 May 2022 11:31:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz68162wLAQa/NfoJsOfkXuuiZNuDdNgddeCeFQKa4bjCbDINpeg4LLllnspaNeSFZxkNpZ X-Received: by 2002:a62:1c4c:0:b0:518:ded:1e19 with SMTP id c73-20020a621c4c000000b005180ded1e19mr49540073pfc.24.1653762700411; Sat, 28 May 2022 11:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653762700; cv=none; d=google.com; s=arc-20160816; b=RlkPGrAfKdC5Vqf7LV/rw6jpNloCPuOMieAbl6VXET90NOxtKguZvQ5CiQu4/Vmr4l 2A+xUtkETvET2ecOXE5Nz/+Fx4gAkmS3F18gMQV3bRVKSokB6tq+hbBJ2uXVv/yqhKFL KrQN/Z7nOv4NW00Qxlp2UuxjeRsYUSaEQA/2Fn12UMev+5VDpjQiNxx/ZnIwJmwyEekd wMH6ssHkPiKSWSY9U5AjTY6uq8hrJ64JAy3TNV+OvqOKvgiUyIgtEsls3i6KiuEWCo/8 xgJ8X6eLNHTtdM4pQtIJPGdPwEOScKsK0eSzp2vFpQiNNvzZOQGUWVflr0LeAFc3H/4o nCDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=+CuVbTAvzY+QWUP1IzG5ja4oDWL1lfXVEyJuS0ev3io=; b=eHET8lAMuNn3l/9/OElF7thn+Ebc0hE3Peojgsk60begYF/omTSUZ1jiGIsXvThGxO mfGYraJ9tJwOyPk95C4IwQz33CxRbGNCQ5y4k8dB8+qhTYZ/38I2tA/4ULITb3RSvkk9 cGUJcAZmnXf+5e4TZuLll2YOzlXyBd3GoCsJ8Zxk5ghmZUvq7LRt1f68bKiNxb4TqbXX CZViDHZbiWM7xehHGE1e4CH6I5AlDXIHbmi/QnPpDbRDwHxCogPzUczFuX/hcfONBxDT kJgE95QQpA1Fng/n9jncdEru4BD3tOrIUd3wzwPeBjle0AsQQ0Bq1VRH2clzShsLbvbb gptg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MKQC5uQU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id b5-20020a170902e94500b001624b0071dcsi9471639pll.459.2022.05.28.11.31.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 11:31:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MKQC5uQU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6419319F89; Sat, 28 May 2022 11:28:46 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237977AbiE1QMm (ORCPT + 99 others); Sat, 28 May 2022 12:12:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237596AbiE1QMk (ORCPT ); Sat, 28 May 2022 12:12:40 -0400 Received: from mail-oo1-xc2c.google.com (mail-oo1-xc2c.google.com [IPv6:2607:f8b0:4864:20::c2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D044E11C03 for ; Sat, 28 May 2022 09:12:38 -0700 (PDT) Received: by mail-oo1-xc2c.google.com with SMTP id a16-20020a4ad1d0000000b0040edb942aa2so944815oos.2 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=Gy533IQsEVRwS1h9Ypp1zAqb5bgwwIRr3yV7N97Eu+NTEyKNHhN4pOuumiNntKP17s av92PFOiM2Tj6kMSOU7ZhnvfH/Ytuahklu+3/Lm57Xl8h7sctOeK8bMJQ9qF1bm7Qbcw 45Tl5LtLZ+LHs9XutVuHuqOufCqDliIv18ZEiooEF6QyPdVC2ZJE6iTtjtCB6VhOeMq2 U6bpJTIvqpt++FTgghD7/bazwBvYrbxgjyoeKwfZpTyTXAZV36952Om6ZM4/2i4X8Atr U6bTkN3atmlzlBFzHDc9TKuY6Z4FWmI13bVGvqb63vVBsSQSKVNt/tYkkvdK2IpoQIst itaw== X-Gm-Message-State: AOAM532QpqZ5dHJGos0c9A9Jnvjycr/LjdaGeMj2vsRcK4ckw3S4TTi5 SIpyR8iYnuuW53/04i7YMxCJZc73T8X2pv6gV54= 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fanjun Kong This patch will use folio allocation functions for allocating pages. Signed-off-by: Fanjun Kong --- 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; -- 2.36.0