Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2422402pxb; Sat, 30 Jan 2021 02:03:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzuHM8sGm1s6bT3x/VVW/RdtbCN0INgYrgC94FPE5u0Gr4/2xOv7ot/sz1QnvuR75EdI/Xr X-Received: by 2002:a17:906:6d44:: with SMTP id a4mr8710859ejt.453.1612001016567; Sat, 30 Jan 2021 02:03:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612001016; cv=none; d=google.com; s=arc-20160816; b=o09zFJLZw/nOAevz79wbpH3mf3JZviMrh9xZXwLRasmW3cKwCQ003gZPrkPrNeYluD biWYs181QMFW2HAQlv20o9OwBym07Z9pDog4oAyFvvFJJrRxyjVO9agmNZqDq0hWKgDJ Em3NpDtz93venmts7RlsZvzbi0do0J74rw6TVCbjg/yBfo7GKnOD5XHDLCKS+TCivto/ AuWqSnGYijuwIvSH9SJa40ek6kJSNg7eRpi/ejtdbyVBdHctm5dXD5r/BihJazilwpH5 ndt91u27SzBk09EXM+4TQa2UqH8gNpZBMtsjBrX5PpfW4r7qXbpn07TPGllNZ+Bc/1Th fEGg== 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=j3Dzww9msvNqI+vdHjGObHdbS7L5h8r6VZmlmJBaBNM=; b=DdFWIq8f5iivAOfQwohB/Oj+68yUvDW22xdNTxv+avYjB0spqbcfQX5tFtxIAnUK/Q vMC/bLjtmRKh7H2MTMs4l76kgS+jHf4O20pWHgsmmqeKlSDUOGdDAjeXwqSVMUwkGZ7q +C+Kbwsra/GDpH0d1DTke8iKawB26HZMxTBPZ5N/P+FCi1xgZN4tY0bQdPXExJL5tuqZ EQtf5kQvJdfagm8nc7yz5Rs9Pj3AWGHfna7XUQIGOMBa03nsAFEgBIayeMR84VzEMziq jymiZvkDDKauPRG/tXdcT7zn6q+hR5xzC+88j1gSk3rh8I/5fmPsKtIebSr/upmx0i3U ya2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Wyotr9H9; 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 n19si6162889ejh.295.2021.01.30.02.03.12; Sat, 30 Jan 2021 02:03:36 -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=Wyotr9H9; 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 S231235AbhA3J7k (ORCPT + 99 others); Sat, 30 Jan 2021 04:59:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:46618 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232053AbhA3J7U (ORCPT ); Sat, 30 Jan 2021 04:59:20 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9DE0464E1A; Sat, 30 Jan 2021 02:31:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611973892; bh=cGf3iJ+ecwtb9Ubl0TlE4VdI62kqOG/SRgvcxfXZejg=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Wyotr9H9B00UJUKheIXtljvx8UCaT02HI/9TZ//h3FJLuKKoSlXIoUT4dm6LRRuVv AUVjtQBdvXqMf4nJUiAd8k1d8TkppgzKPcKYBIq527jRWD3XHIy0fiJkEkxNZthJvx 3YD6JzlBY2rtZOnwnxCqjZYRG3Tp9Iz5+9HEbe3615xDxhTdjSuGf9yxlvpeK5zzmO D4fPKYi/j0h0Urv7ObZS28fLIdKiQL90fnnAcGF9W2dFqKpeV5tNQ+h8miISEY0PSP NEFeNtttgTEBEGpKv4rAQDR1NI7PhXdj4rbOefks8jgfQ61g1GQ/k+Y4dxmeqiybEk Yu2M65T9m2x7w== Date: Fri, 29 Jan 2021 18:30:51 -0800 From: Jakub Kicinski To: Andrew Morton Cc: Alexander Lobakin , "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 1/4] mm: constify page_is_pfmemalloc() argument Message-ID: <20210129183051.62874a6d@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20210127201031.98544-2-alobakin@pm.me> References: <20210127201031.98544-1-alobakin@pm.me> <20210127201031.98544-2-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:01 +0000 Alexander Lobakin wrote: > The function only tests for page->index, so its argument should be > const. > > Signed-off-by: Alexander Lobakin > --- > include/linux/mm.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/mm.h b/include/linux/mm.h > index ecdf8a8cd6ae..078633d43af9 100644 > --- a/include/linux/mm.h > +++ b/include/linux/mm.h > @@ -1584,7 +1584,7 @@ struct address_space *page_mapping_file(struct page *page); > * ALLOC_NO_WATERMARKS and the low watermark was not > * met implying that the system is under some pressure. > */ > -static inline bool page_is_pfmemalloc(struct page *page) > +static inline bool page_is_pfmemalloc(const struct page *page) > { > /* > * Page index cannot be this large so this must be No objections for this going via net-next?