Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2411547pxb; Sat, 30 Jan 2021 01:38:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJ0cEhk/PIyl/VBZFOmU83Lhq2kcsDQUFaVOZmVrVauZgRe3IfcQLZvOwlmyberQIhJwkC X-Received: by 2002:a17:906:408:: with SMTP id d8mr8436809eja.280.1611999514616; Sat, 30 Jan 2021 01:38:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611999514; cv=none; d=google.com; s=arc-20160816; b=NfVz4BkOtihQzKQHVOmj7hwS2rsgjBC5c7Ezl4dJ4R9y4NaesBKfl2qowoRJzm24FX S1pMWtuxzMAfP2avCfCLA5tl75XnMRYhscGtL4kECDLzJrO9We5uUt1nEARQzHv7JQK/ W70W3PI5A0gpiCIuVWo7c6R5mY6/Oc+socJtpeP5ZdYvE+jx+BJ/Bxh+JHKGjjndARnV 5atUAlPTS7GrUqW6HmaQTGuju1xotuOxAj3+Bai3kdGGLQ15W88uLn/4lNaNsVKZnZge zu2Uu8N6MQT8/XyrBMTFAgNJt7d1Y/H7idptZjZWZeoEyDW2pohEyfTgBzZ0AIrWJSbr 2F1Q== 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:cc:to:from:date :dkim-signature; bh=Xa3aXdkH6VcjkQv2mRzeHTVU3FePrWxYumhPtvDn8zo=; b=k0zA5hNVl3jw8fOXPgOOXfPxk7T0puQ2QNgnrCknt2umvJtNgymNdwXmDvkXY7iEbw aNa61SY0r0I02mqDo/XVNBuSyRSVXFr/cQNluyl03Qu26beruZ3QYhiEO5rPG3S1b4aj IST8i15l6e5scux3y4CbG6SZn4h/gGDQXowwjZvfw+NSRuXwQXK1uAtwUH41jKlEr99/ 1EVRF9eW9aeSsyg76mZaaX2ytAjAuWde2OyiKMBNWe6LkSIMThqBXjihSID80htSiKaP 7LRq9umrC6hZe+a1PKL482O2n+TUxu7BatyTOxddiPGByjYjvKIhR4hea/oncy4SDFN9 2zBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="CuA7saw/"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n2si7135104ejl.444.2021.01.30.01.38.10; Sat, 30 Jan 2021 01:38:34 -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=@kernel.org header.s=k20201202 header.b="CuA7saw/"; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229990AbhA3Jfv (ORCPT + 99 others); Sat, 30 Jan 2021 04:35:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:34392 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233510AbhA3DUm (ORCPT ); Fri, 29 Jan 2021 22:20:42 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E6A9464E0E; Sat, 30 Jan 2021 02:39:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611974348; bh=Xa3aXdkH6VcjkQv2mRzeHTVU3FePrWxYumhPtvDn8zo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=CuA7saw/NDT+jltBVLbBOTtilmjJ0UnnOPSNhIp0vShR5tTLtelQ/Ci1Y9jrcJzjk 3FDxe+ykvXfRDbwSZtUYnXtiMKt7H4HVivJJqrTYJLfVxJhJmmk9QLMSNTtOVqUTDb dZyybRVqcd4QDuNd46UIFCQs37Gnk5Wg+w4OCZp/BECSGKKr2Rsk1VOvwYaiqlQywb VzKklQrRbxLRmDiDCPqKf/0JADwvBNgIVZ5Q1Jh2qc26DZyViIudB0FLkI9srNwS0N JVXIyfhG944QWXOaymGasP3yjFfN1BYSqkbDq7WrhqUa8KGo01/23gOQAkgrkSry62 RWTV4TxpCVpcg== Date: Fri, 29 Jan 2021 18:39:07 -0800 From: Jakub Kicinski To: Alexander Lobakin Cc: "David S. Miller" , 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 Subject: Re: [PATCH v2 net-next 3/4] net: introduce common dev_page_is_reserved() Message-ID: <20210129183907.2ae5ca3d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210127201031.98544-4-alobakin@pm.me> References: <20210127201031.98544-1-alobakin@pm.me> <20210127201031.98544-4-alobakin@pm.me> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 27 Jan 2021 20:11:23 +0000 Alexander Lobakin wrote: > + * dev_page_is_reserved - check whether a page can be reused for network Rx > + * @page: the page to test > + * > + * A page shouldn't be considered for reusing/recycling if it was allocated > + * under memory pressure or at a distant memory node. > + * > + * Returns true if this page should be returned to page allocator, false > + * otherwise. > + */ > +static inline bool dev_page_is_reserved(const struct page *page) Am I the only one who feels like "reusable" is a better term than "reserved".