Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3202321pxb; Sun, 31 Jan 2021 07:41:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKFUPfYQhfpmbEhI8a8ncDwswzKEPULTWTxaIGpMS88snYa+2OLLukKP08rCVb6upZ8eNU X-Received: by 2002:a17:907:9810:: with SMTP id ji16mr13244851ejc.394.1612107684555; Sun, 31 Jan 2021 07:41:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612107684; cv=none; d=google.com; s=arc-20160816; b=nhABFiqbIvWgylwzSz9MRDPOM/Hs58nEzf4pAw+5/D6tULk5oDJ+a6EwwkmSMAJ0ps uOyUYFrGbvQWNvZYSRDgkDyd/5Glq2J1lxHC9QLEP7r8M4pbiToCgetFnSL7pnGiwgIk V0W+x5DJ+Q3FFG28ci5kBQlWkGGAohon4lJVyY77slub5JM0/FH1rR4mHX1BQDxTRw5A bE8ZElC7wM1sjEcsoKboQPmMMNPNYnRNGP0XzckwR5s1aiLWRN4YtkGuICr1hm1X7+SO OdgBAt9K/zmNzgdS/v2DovhCeIxTyBigAK5nve9jZnybio4HTmg3dt1AJzvmsy1WosEV ujOw== 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=WQmv+lINWZMnjCqrhk0t238ba57rjrODpL/IZU/1KfQ0MgkUE/JuJv5Hdaf38QimJz ntg3eA5oSy1fzTZ9Qvb52LS27JjFURG0DcanFE+W12pKOrvpUZnWBUOtMYRXJmJV+rQo DQk5s5p8IbDxtjAiUS3jLlkv71gjolMkS1JstNDml0KXi8pHRqJVvDk1eldLlESLCTAh xju+JUSPrrn2W13XheFuxJkCvY0/CbiOCiKw67X5yRvgZzB6dIdjaLX9nIo3CP8wQYyZ KaU9s5S4URbXk9z8jROupdTnRyNhqiRWyhQVj1jY7+qNesVKLbeZpPr/Q9QpQglF5RJH KH3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b="EC3h/Hnf"; 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 h24si9265459ejt.638.2021.01.31.07.41.00; Sun, 31 Jan 2021 07:41:24 -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="EC3h/Hnf"; 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 S232212AbhAaM5x (ORCPT + 99 others); Sun, 31 Jan 2021 07:57:53 -0500 Received: from mail2.protonmail.ch ([185.70.40.22]:55090 "EHLO mail2.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231639AbhAaMMj (ORCPT ); Sun, 31 Jan 2021 07:12:39 -0500 Date: Sun, 31 Jan 2021 12:11:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1612095099; bh=NakdAHBTDBfMpPGylkZuE67yNEL45d0nvbHsNhM+ASQ=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=EC3h/HnfRnJpL7UbKwpBKEQsyesSbfgBchPTeS1UKyDq1hfrbl1Z3b5UIYKpr0QqI noFjraCw7qbuRCiUjXyUboZ3u5V2zRYImLWAwwhhibCckgKnbjuS/9BR6k6bBaWGP7 2GggaSxSwMER7W64BP+SdvK9/+unFUqffugu+twMuCQNx/MlOV5sz+cgWsgmJcP6Lt vhcd887UZDhuwRYJoGn+049jFLsD8WGAWhgfh4Ln3gLsaZj3c/zGmTkF70yMCRnycc LerZ7dOPIUUV6LjkPjI2Lea35hFzVtbqDcDgZrNuXlvimj05DgAkTyUSIXODzClNhN hERRDGEp9T71A== 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 v3 net-next 1/5] mm: constify page_is_pfmemalloc() argument Message-ID: <20210131120844.7529-2-alobakin@pm.me> In-Reply-To: <20210131120844.7529-1-alobakin@pm.me> References: <20210131120844.7529-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