Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3627788pxb; Mon, 25 Jan 2021 23:59:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3nh/owxG2cEWafyMYvyetg2z4QwK2NVJt7M54wcBHvmDoepbLD9E8Aek62M3Cai9tZIbt X-Received: by 2002:a17:906:259a:: with SMTP id m26mr2733093ejb.399.1611647954898; Mon, 25 Jan 2021 23:59:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611647954; cv=none; d=google.com; s=arc-20160816; b=CMHCzIT+w+ZPZ4Ir+GSGp7MVTdLoVS5zs6tvwRa/Iz9P5VHyKhX0DMtb9+LJXRLOq4 Aln1QrcDMTtEWvC0ZHnAC/cSPLJYuKSJlsHrob2H2GjcDm0DkLE3gA/2DRBBLC+qwvpf /toyqbsatuWpN7sdN2xUfGLRmnyUsnhGrJ+us52E3RsajWSJb4mYzpDCovmncOB77k98 44e/T2MtahdfUjxS8m1I7/XX1h6vY0DIpAJdvvEk/Sg7LunM5wnWdZTHJjeHL9R5ONoa csWn0Rt0mRbas53SGMyFKpYjNOafJ637bvJzehxtPPgqHrxFaduEWbk2ANbwYYbPtTR1 kpug== 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=AHyWptDtNNt/RsGlGP1BOQXyP2xOkxpPAV3Vh/utaiOJqUWTFdrmm78/88mTLLtGhE QaNypcRcbxnqHYjRQFuWmdyfSJqli4HktJs+iV0tflRSjXBPFV7s6WGhYR4Nb9STYlom k5Gvtl+i/Gwb/qW0OS30g02j0sSyaj0TtompSCqMMEzYBadxxn+MAUBxsW5XE8FfqJnq kYiKLttkww8F/Zc0o8M/W1MmR3gGjALVMyB7iW8iFa1RYt53DfK8r9eu3f/wCQmZXOdx BQW1lX8oVSCGetfYK+vkWjuaWi5HroZzsGu3tAoLS5SvNU2+xLK8UwGQJvTfBv2DMnu8 VMHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=QDBwMIqE; 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 hs9si5490238ejc.78.2021.01.25.23.58.50; Mon, 25 Jan 2021 23:59:14 -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=QDBwMIqE; 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 S2387662AbhAZHxY (ORCPT + 99 others); Tue, 26 Jan 2021 02:53:24 -0500 Received: from mail-40136.protonmail.ch ([185.70.40.136]:55653 "EHLO mail-40136.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730893AbhAYQsQ (ORCPT ); Mon, 25 Jan 2021 11:48:16 -0500 Date: Mon, 25 Jan 2021 16:46:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1611593227; bh=VZmsQgsGD/2KxVsDk2CgN0UPiozU/OwIb092ldM9UwI=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=QDBwMIqEu/ITPMltyup2y+v8iLaO4QNWPB6K9HIAhdhe39c9a/Wn0TTBHho5ovptq RWf8zFxHjJHha5tTlwwn4J9qpQS3tZwfqjq/D1TTwvWZMQR8/8mCGuOGwIuRHtZbGH BmrcrWS03XzTmRVRlJki1jbhWYyV6im+kKGM4T8V32on+fRG9oZElnS8JclK6UvQzR 03gspPI1DhAzE3n/nus/4HktPXehSZ7wsM1ALoyvn7/OvxYNdCVwG3NP01er+dJDcl qdzAIojEWdnwIi/WNFK/hGJBZrWJQVC0Zm8DbWpmOIhPC2yIUQUIi4LIzjiH8rWjqU 6QwaXqYlzAQ/g== 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 , Aleksandr Nogikh , 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: [PATCH net-next 1/3] mm: constify page_is_pfmemalloc() argument Message-ID: <20210125164612.243838-2-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 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