Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3727548rwb; Fri, 16 Dec 2022 21:16:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXtrapLRqsXGFtAW+finloP4dPvljvYcqbf9GBV2s/cXhwTsbRTdxsigCp1pxMiNPq03IsFd X-Received: by 2002:a17:906:79d8:b0:7bd:6372:fdb4 with SMTP id m24-20020a17090679d800b007bd6372fdb4mr1350736ejo.41.1671254194169; Fri, 16 Dec 2022 21:16:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671254194; cv=none; d=google.com; s=arc-20160816; b=oo+e9HoTCc9txR5mcheqAvZoMTJKwalx7Pj+GEsxhZfPjzkSnumgcP/GRInb8Zlg7R hUpOvwFMO4FcEf8ICfOPz8blZ1X/jq2CPMpSwvC+kP7UqLrXzbcn5C5eHCKvROKxB0kN JN8wvU66422T5sabagLEg1J6Dp/gqsWPMltLTkCDXWbkNwjmXxSKJh2GBa1q3AU+Ew3F UhDqilTiSn+xJv5l1qcnIl+LkbMmej40XzmZPaHE9MrVpJ9LNFGTIrVy4rhLbcwfS3a2 1Bno4+SdW/ZLKR0vnSFWHgKNuMwDBbyxLDRaoRmfCDkG4lHMhmW+Vhv7LwuWX9hR+IWG Mq9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HNBvGcqXcWq+3AAYbJatmTxzCpFZhSTTEH3kZBldKRk=; b=fJ7JnP2zEvGhuWne8CzluhMWol/qOTF76kwoeknpvghOKcEHO39RriP9TyMqQoKS1/ FcipPj6/7wjflSm0i9rPq0YrXHNICysSGj2e27syG1z7eSeV2sbjtAJ4SFo5rk9pOEX8 lz0WfIMiVxXrpB0Ih3wR9JJchtzpDh9h2ciawy+nzXen75rg3c80UWKFw+xPpUdO+d4W /fkmdOBpVVCCb2cJsBppA2g2ffbcy77oxXVlpv64VoquQ9Hd8YY3m/6mZ+c3PEbGhl+N uAj9IjMumh66wkK/Hty4pxa4Zuoyo1jS4Jf1biV3TGuQEu8V32o7EcSl/LE9Gg9mtmsC ASyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=HT0Ah9m2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds22-20020a170907725600b0078d770f363fsi4387316ejc.471.2022.12.16.21.16.18; Fri, 16 Dec 2022 21:16:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=HT0Ah9m2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230207AbiLQE4P (ORCPT + 69 others); Fri, 16 Dec 2022 23:56:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230193AbiLQE4F (ORCPT ); Fri, 16 Dec 2022 23:56:05 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9639740807 for ; Fri, 16 Dec 2022 20:56:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=HNBvGcqXcWq+3AAYbJatmTxzCpFZhSTTEH3kZBldKRk=; b=HT0Ah9m2HWt9/79RcWQoTS44Yh jPIVoCsfrNoXelxm9k2DHCigiLm0vWPQV7Y3I2lio1Q2alC47WCgUhppGnE9zK10zGcfBPj/3O4Km DGm82gmAGv9di/0dQla9ZtJkfIcJ6YJTMuY8SAAZ7UZaoaH9WAISBLi6vWqdF7GedcvAHHlMcA6SC hRx1IB+ONdM7kUUBd6qArE/ao5tjayPnFtaI7Qdi/RI5oSR/imdfmwrsnJVh/lv2donWwB6SkHosZ HqEWwwjJQxWIkKkUwXIyEO+7SeUzPzYN4mBV1sJ/c3TOFZuTs+h4Sut+oRHLHmgnlfgIjy7THE/Ue EeGfuDBg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1p6PEx-00GFDv-J2; Sat, 17 Dec 2022 04:56:03 +0000 Date: Sat, 17 Dec 2022 04:56:03 +0000 From: Matthew Wilcox To: Lorenzo Stoakes Cc: linux-mm@kvack.org, Andrew Morton , linux-kernel@vger.kernel.org, Andrey Konovalov , Ingo Molnar , Marco Elver , Michal Hocko Subject: Re: [PATCH] mm: remove unused alloc_pages_bulk_list() Message-ID: References: <20221217001554.554913-1-lstoakes@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221217001554.554913-1-lstoakes@gmail.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham 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 On Sat, Dec 17, 2022 at 12:15:54AM +0000, Lorenzo Stoakes wrote: > This function is not referenced anywhere else in the kernel, remove it. I think we're waiting to see if any users show up. It's only been 18 months or so, so perhaps wait a little longer? Also, if we do get rid of this, then __alloc_pages_bulk() can lose the "list" argument. > Signed-off-by: Lorenzo Stoakes > --- > include/linux/gfp.h | 7 ------- > 1 file changed, 7 deletions(-) > > diff --git a/include/linux/gfp.h b/include/linux/gfp.h > index 65a78773dcca..67c5164f4758 100644 > --- a/include/linux/gfp.h > +++ b/include/linux/gfp.h > @@ -188,13 +188,6 @@ unsigned long alloc_pages_bulk_array_mempolicy(gfp_t gfp, > unsigned long nr_pages, > struct page **page_array); > > -/* Bulk allocate order-0 pages */ > -static inline unsigned long > -alloc_pages_bulk_list(gfp_t gfp, unsigned long nr_pages, struct list_head *list) > -{ > - return __alloc_pages_bulk(gfp, numa_mem_id(), NULL, nr_pages, list, NULL); > -} > - > static inline unsigned long > alloc_pages_bulk_array(gfp_t gfp, unsigned long nr_pages, struct page **page_array) > { > -- > 2.38.1 >