Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3157383pxb; Sun, 31 Jan 2021 06:14:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZgBE8LwNu2SlecnxzRHOXLvRJEKID5eUFXOWokiSpfqQ/8767ZXsqGjJD4j7lrHPKyuQF X-Received: by 2002:a17:906:4c4b:: with SMTP id d11mr4633339ejw.387.1612102442289; Sun, 31 Jan 2021 06:14:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612102442; cv=none; d=google.com; s=arc-20160816; b=ZYg0CeDgnBLHqobJIkz9wBBijaxhUCtXleYLitCtuyvN7tiEhDMU61TY06zvHnUia7 N2BiHwvXHJOTaxHxVhv1tV7bB5Uq8CtmdTPWvtvaB3U1RecgSS48bUjtnD13dcJvb0jM xTmFMZa+FNW8fOIsqUhAMpm/LKoxLkvTUuGLL/amPSfR6GFJiDAIAsfEnGLy4SiYQDwA sCmHBfQre+4WtlOItjPHOXFOJhbLbSjQycbsHVxNjHL6YC0+DK81p8Dns8cbvNCT5yjY jIonba5p6q35IILQQefQg3pbILdYLsBOoxDIySGUN5t9MnrCypb8xMvdp4yKlci/z/44 dxlw== 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 :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=y30s5J10nfJ05d+t9ObBLUOEaiYg0NNkaEvHUkJBLzA=; b=0giiCn8TsyhHW7XNRpufWbX7oa85S8xGnm5/07Mc9ScxlmyZjRZsbAH2tdP7GOijIe lfXhx/OPY8f51utwDxh6Vw63SivUWAIofXO2SHDr3hwFOWDNwCtXr+EPXeZUIlXzOZx5 37n6DXHKAeNlSkt3FX3iDOP6QmFHUr2vVuWqGIThriA/o6xy0h7R6r4cVS97xUjbQvqP vesPcBa7k7USsN3HXn2edPpOyHkuyPd30REvFlRduBsEAVponuStHhqmTMvtiOZb1htC MkPA+XzR4I0O6WOR2Fkzv7SeufyLJehQQeLiKFI2upo8cCHSbn7As0ntDbA/A4uTxbJQ xAMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=nhDCOWpl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si8730450eje.581.2021.01.31.06.13.37; Sun, 31 Jan 2021 06:14:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=nhDCOWpl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230122AbhAaOKs (ORCPT + 99 others); Sun, 31 Jan 2021 09:10:48 -0500 Received: from mail-40131.protonmail.ch ([185.70.40.131]:41050 "EHLO mail-40131.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232059AbhAaMtU (ORCPT ); Sun, 31 Jan 2021 07:49:20 -0500 Date: Sun, 31 Jan 2021 12:48:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1612097317; bh=y30s5J10nfJ05d+t9ObBLUOEaiYg0NNkaEvHUkJBLzA=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=nhDCOWplzmyXPSzZmedhJPQwO/CC5dhY2EAtlfsC7hL96xVl0c+sIejcE+CS/6IpU gKKz74jA72t0iHZmFG4/Vph3vyY8VtWfQ6r65Fm6GYKbXLbfdZe10YKpES2uD/emi8 SHz1PtfhWCTcQPkFFde1Xz7YXK4Bf9JUIsyZrdynXJ0OgIbBhvB6oa5SUdPL4/J0RW OXbOAw2zjJyP47AAvJbs6D6KnTLWmMU4i43Sbxw6nbusSdbY+qHSiPn5BRfN/WIU+l YrXmib/7xJ4qSyDdhsroCsfKrCT45hSewfuvdY91s9u3N/tjTddj5YDF4JW17JiqKy VR6FDnyinK+Zw== To: Matthew Wilcox From: Alexander Lobakin Cc: Alexander Lobakin , "David S. Miller" , Jakub Kicinski , John Hubbard , David Rientjes , Yisen Zhuang , Salil Mehta , Jesse Brandeburg , Tony Nguyen , Saeed Mahameed , Leon Romanovsky , Andrew Morton , Jesper Dangaard Brouer , Ilias Apalodimas , Jonathan Lemon , Willem de Bruijn , Randy Dunlap , Pablo Neira Ayuso , Dexuan Cui , Jakub Sitnicki , Marco Elver , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, intel-wired-lan@lists.osuosl.org, linux-rdma@vger.kernel.org, linux-mm@kvack.org Reply-To: Alexander Lobakin Subject: Re: [PATCH v3 net-next 5/5] net: page_pool: simplify page recycling condition tests Message-ID: <20210131124802.8430-1-alobakin@pm.me> In-Reply-To: <20210131122348.GM308988@casper.infradead.org> References: <20210131120844.7529-1-alobakin@pm.me> <20210131120844.7529-6-alobakin@pm.me> <20210131122348.GM308988@casper.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthew Wilcox Date: Sun, 31 Jan 2021 12:23:48 +0000 > On Sun, Jan 31, 2021 at 12:12:11PM +0000, Alexander Lobakin wrote: > > pool_page_reusable() is a leftover from pre-NUMA-aware times. For now, > > this function is just a redundant wrapper over page_is_pfmemalloc(), > > so inline it into its sole call site. >=20 > Why doesn't this want to use {dev_}page_is_reusable()? Page Pool handles NUMA on its own. Replacing plain page_is_pfmemalloc() with dev_page_is_reusable() will only add a completely redundant and always-false check on the fastpath. Al