Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp638776pxb; Wed, 27 Jan 2021 17:39:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxnQNpy/JvDIXOPWc52ZF1NNLzBeWSumOP+WnR9Jj8ia66auBfNj798JRUWUDz0gpexRRtP X-Received: by 2002:a17:906:3ad0:: with SMTP id z16mr1633830ejd.72.1611797975145; Wed, 27 Jan 2021 17:39:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611797975; cv=none; d=google.com; s=arc-20160816; b=vqm982ZyQNVEXtPK0YBttM1x706wc/SdYzE+E4k4/HYhhYREabKUSgJQciM4AVWpCO 9yUbk6rvbJSo8NrwWzCKTaR/AxE77BvO8Y0Z6/T27XXpjloTIMlDLgFDk+2gzKNn6asf MQZ44uFLarGSVCALQMX/QY3Ca9SakPnt95eNBK6r/+ffhgRGHMLFgsMDrR3Fz+rWw6bm 9cGZ34YGM8ZCMOHEC9SayLhVEZElhg7JUIyC7VCLssElYsWCYBkDa91fPM8b+5xO6TLB SzU0plJUAiBqQieMp+0emdx15/F7tqa1cbLAMUfeN9wj0e+Tfx2oZi/zFiRgcORoKgOZ LaLg== 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=3sWElGNGgappUnF5Kd8jNAGLD06GNdAvPcxILY0B8/A=; b=G0J6H+U649XF2GfNRKK1BQz+RTsPXjBAwu3krWl1HhBUvqwWdTNVnxjfxbBmhcYZnK Co4FXAJPG7JplsNOHRmTXZzKnGgT3ZqVdkHrox7MaSZeHD0apSLldh2VWUqkIG87A1DQ rrcu7kIB8hysEjZRinOLHj2LYOGl9+7gvn5+NrfX5UhyDegZbj5U9FHx8h4SoQlZrek6 6BI+m4GKVsZTihkapyi9U17+j5ON61OcoZIP+nO4zDhxVsyOKdI3BDDBoZ6ckddKg9g8 D6vGkF87O/IKYWU6A7+eAIziN2YaiyZdgVpR8ft0XQYP6HoKebcElqSFG8pJpQ/rXQpP DGTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=aL522TuV; 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 bd17si2008641edb.553.2021.01.27.17.39.11; Wed, 27 Jan 2021 17:39:35 -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=aL522TuV; 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 S232493AbhA0UYj (ORCPT + 99 others); Wed, 27 Jan 2021 15:24:39 -0500 Received: from mail2.protonmail.ch ([185.70.40.22]:25434 "EHLO mail2.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231968AbhA0UYg (ORCPT ); Wed, 27 Jan 2021 15:24:36 -0500 Date: Wed, 27 Jan 2021 20:23:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1611779031; bh=3sWElGNGgappUnF5Kd8jNAGLD06GNdAvPcxILY0B8/A=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=aL522TuVAVSb+jpMVRrLVwgiG1dCW9GEbIHyzFs87eJU7GVqp4P8e4F5QHTWm4pw/ EBdtAWI6Oz2JqrRSppbIfGq0YFJAiZ5sPqwFTiQSona97bz3spHMzlATmxRxLSe0qM e+X+aOUv8CFYm4aNs0GcX6sIxKx9rzkQ2pJZYDAuIyxDPIcpcOseQSAuPBqfaVxzYj AMqImLK2tiGV1YUEezS2oSOkiofo/MfwTX3Acuc0z9J6kFkmTLpJJFBoiBENXzPo5r lb3ocltvxlyGrb6vH6f9uElRMGhRYQZT2FHflaCI9QauYyEmNYBCh4kVah0mD7j9sN RgutLUDfUQfrQ== To: "David S . Miller" , Jakub Kicinski From: Alexander Lobakin Cc: 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, Alexander Lobakin Reply-To: Alexander Lobakin Subject: Re: [PATCH net-next 0/3] net: constify page_is_pfmemalloc() and its users Message-ID: <20210127202322.99523-1-alobakin@pm.me> In-Reply-To: <20210125164612.243838-1-alobakin@pm.me> References: <20210125164612.243838-1-alobakin@pm.me> 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: Alexander Lobakin Date: Mon, 25 Jan 2021 16:46:48 +0000 > page_is_pfmemalloc() is used mostly by networking drivers. It doesn't > write anything to the struct page itself, so constify its argument and > a bunch of callers and wrappers around this function in drivers. > In Page Pool core code, it can be simply inlined instead. >=20 > Alexander Lobakin (3): > mm: constify page_is_pfmemalloc() argument > net: constify page_is_pfmemalloc() argument at call sites > net: page_pool: simplify page recycling condition tests Superseded with v2 [0]. > drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 2 +- > drivers/net/ethernet/intel/fm10k/fm10k_main.c | 2 +- > drivers/net/ethernet/intel/i40e/i40e_txrx.c | 2 +- > drivers/net/ethernet/intel/iavf/iavf_txrx.c | 2 +- > drivers/net/ethernet/intel/ice/ice_txrx.c | 2 +- > drivers/net/ethernet/intel/igb/igb_main.c | 2 +- > drivers/net/ethernet/intel/igc/igc_main.c | 2 +- > drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 2 +- > drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 2 +- > drivers/net/ethernet/mellanox/mlx5/core/en_rx.c | 2 +- > include/linux/mm.h | 2 +- > include/linux/skbuff.h | 4 ++-- > net/core/page_pool.c | 14 ++++---------- > 13 files changed, 17 insertions(+), 23 deletions(-) >=20 > --=20 > 2.30.0 [0] https://lore.kernel.org/netdev/20210127201031.98544-1-alobakin@pm.me Thanks, Al