Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp602059pxb; Wed, 27 Jan 2021 16:24:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJyS7QQ2mIfbHILFLWcFJmpFPUhHau/mDSvFgLLu0+RnzXo7pclatjHGdA7xHHMq5mS8H+eT X-Received: by 2002:a05:6402:95a:: with SMTP id h26mr10934543edz.288.1611793442783; Wed, 27 Jan 2021 16:24:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611793442; cv=none; d=google.com; s=arc-20160816; b=ZHvI1fG828yzFBguQlVPFbBHboZhWMBCUP9asWXV6qQs8B3UgULby0rIiHodymRsb1 wBhNXFio1j9XUiBmYEKi15Ck9I063E1J/72tPiiKMHnU9bGWgC8TEs9OEdm5qKrM6enY 0kpOBES7Me9aXMWETunWa1iDNFqADAYywDd1n7FcZcVaIJl95bqjC/QukQWbtyyqg3np RpB1Sg1r9P/7WI1xXoK2TNC3uxGbTlPbh74PGbmD4TfQtkERBups0AWzQ4DL2g+f3uPS I4ghqKoaFaZ2atJH9zL6OqXlsfRikc6l21qm5gDGEbEuXJAqZoPgD5BvvXHoX5ahF4Q8 TrOw== 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=VZmsQgsGD/2KxVsDk2CgN0UPiozU/OwIb092ldM9UwI=; b=X10i20r7CRFN9Y8FJbd0WTsii556Jm0ss4BCQJbg0RZ0iXt/6gbdK+s2Wt1EB0n1XG tBnecThskSQaTnuOsFaLtvqkH0h6nt6+Z2Qoz2UgoLZedhk0+hCay4RhlpYwMxP2Q5iw guHUyUiqSfIKnquQITtwxVfliKCbTf0ek44Ic1vOLuv/TpjJt8w1DhrOK1UrxbDAvleg dP+iskPXcqPU6Znmj5yjHRIQs2WvRB5lMuLTU8gKYfQMdPTEm3cBTkmBIC6K4lWo+46e i15IGCi/TIsd/Au8f9rTSePNPOLkHCwPGNyaqzR1u4+vA37bNo/baDjRfe4hjK9M9SNw hqJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=Mo13LuMc; 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 z18si1512900ejr.345.2021.01.27.16.23.38; Wed, 27 Jan 2021 16:24: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=Mo13LuMc; 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 S232735AbhA0ULx (ORCPT + 99 others); Wed, 27 Jan 2021 15:11:53 -0500 Received: from mail-40133.protonmail.ch ([185.70.40.133]:27806 "EHLO mail-40133.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232678AbhA0ULu (ORCPT ); Wed, 27 Jan 2021 15:11:50 -0500 Date: Wed, 27 Jan 2021 20:11:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1611778267; bh=VZmsQgsGD/2KxVsDk2CgN0UPiozU/OwIb092ldM9UwI=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=Mo13LuMcS9CANwW7XuPVKscyWcsv8NM3kVvpGhzPxTMduDaUWjfj+6u2OIMbiUlxX V7R/Svp3OhhbWYVrlgVHaAHBbgTOFaAa2FLdiWj3zioyWEbs0aZqN5XhVPsbIaV3MF hY5Ej1L7XHAeoBmTFAX89Wp4Q5mMiPBVizMZfZ4xc7ioivzPJduyXXC/7Wa6Bbbos9 j9WN55nUjya6an1T8YCwh2N6VPYUFGoEqZi12595euDTtVf8I21OTxOQHHRUCasEOz jQEJTl9cfC0sFN0x0gtkXrYC0I9F0zWBs0/UmSOpMeRxXiiZ/mfnngKkxxPkEE2Z0W 8efS2tykmkesg== To: "David S. Miller" , Jakub Kicinski From: Alexander Lobakin Cc: 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 , Alexander Lobakin , 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: [PATCH v2 net-next 1/4] mm: constify page_is_pfmemalloc() argument Message-ID: <20210127201031.98544-2-alobakin@pm.me> In-Reply-To: <20210127201031.98544-1-alobakin@pm.me> References: <20210127201031.98544-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 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) { =09/* =09 * Page index cannot be this large so this must be --=20 2.30.0