Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp627969pxb; Tue, 2 Feb 2021 13:40:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJwEBRDuD3GUw7UFpsKzBqpjjIXBdPBebZs9sS7is+vmDrLGbPuopBc+RG2uuIwTRRQtlTVA X-Received: by 2002:a17:906:2d0:: with SMTP id 16mr17263314ejk.373.1612302022668; Tue, 02 Feb 2021 13:40:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612302022; cv=none; d=google.com; s=arc-20160816; b=r72/QOpX9I2U7cJzbd2kcYdPp4xMWDbpitr6On6jCWryqhKOGat1H2I689G0lRhPOd hEUWnRKkrX7yv+RFrUWAXUtcGJESCjPqEwCHzpWKeE63Jzdy8bYuuSn7gqfoHe2Xk+dc dkqBm83qKvt6+sGm4SIliJB6EBny8S5zr+gSgAFuB14RlRMeE1F+P6w9oX6c9YsYeIF4 YQqY5zzdEwMqUILuaMW8Us8wKihILK7dn3atgxaRuI63iGf+zbzfnV0wjzcM/wHDcwdP eFbmotW/8bCK4FMIHEPNVqD+wGAGdXKqDfwZCU+EuVnI3J69HLFIu6hB28dcQUSoyr+2 XfRA== 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=NakdAHBTDBfMpPGylkZuE67yNEL45d0nvbHsNhM+ASQ=; b=YPxWT5mbiF5f6sgm64eb1cLDjXyIDWzgScYBuCByKNrAoICzEZpnXEyGWdKRMEy2bd iKvgHW8+jVz/T5L+MNcrcomx+PQxCLhtB8JniZ4oshtm32L5+fZkFSC7DLMWbenRNqTW t7OwpC5uTwtZh1FvyjzrhU82E4lzdUTxas6QJnzanaEz8rWZHge4tinpNJtzRTNrK+xJ VV1WcaN4402+rNvjUSWs4cWDO/2lhE1vV9joHkXSIJxlgCCdbj8V4yJTk4rljcfGsxhO fCJyLsFlC9fBzEFiIg8PL92PFkwyEkTSXFlkbKTmkBVnifJRkNGN824XhBPeW5ez4DZX pSbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b="hTkyc/xJ"; 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 c12si14177570ede.192.2021.02.02.13.39.53; Tue, 02 Feb 2021 13:40:22 -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="hTkyc/xJ"; 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 S231497AbhBBNdv (ORCPT + 99 others); Tue, 2 Feb 2021 08:33:51 -0500 Received: from mail-40134.protonmail.ch ([185.70.40.134]:33315 "EHLO mail-40134.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231860AbhBBNbn (ORCPT ); Tue, 2 Feb 2021 08:31:43 -0500 Date: Tue, 02 Feb 2021 13:30:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1612272656; bh=NakdAHBTDBfMpPGylkZuE67yNEL45d0nvbHsNhM+ASQ=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=hTkyc/xJhSWuLvTkbdhPeXxd8CVlFW2dw0ecszzPmiYDS+I0+PQH+xqCTDMo/z/Ob wM0XDKrep+r1NuokS1sVHFS9rOzr9IA0lKi0kTFRN4Wf/2LkS/lY+USTE4XVV9iuhU e0y/X7KVuxOZ2kqI2sU6enEWI+u//whBo7kgYu6KmxX6pRIuhmyXqVv3Fh+TfcfvZ+ k3ExwydIsux8ua7DwfqLQYvr9FgX5+oUbIfWiVpsT4ujrWzxKIy2RA8Woo9UnD+MrK Xa9OWKH6/dilD6rTqVWdc2VLfReoTIzXDcuucrLhPCyrfnIshcm11l9uSJZyFbQpYE JMTN8TOSVY6gA== To: "David S. Miller" , Jakub Kicinski From: Alexander Lobakin Cc: 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 , 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 RESEND v3 net-next 1/5] mm: constify page_is_pfmemalloc() argument Message-ID: <20210202133030.5760-2-alobakin@pm.me> In-Reply-To: <20210202133030.5760-1-alobakin@pm.me> References: <20210202133030.5760-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 Reviewed-by: Jesse Brandeburg Acked-by: David Rientjes --- 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