Message ID | 20230906150309.114360-6-zi.yan@sent.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B25C8EE14A7 for <linux-mm@archiver.kernel.org>; Wed, 6 Sep 2023 15:03:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0A1DA44016D; Wed, 6 Sep 2023 11:03:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 003B2440151; Wed, 6 Sep 2023 11:03:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D70BC44016D; Wed, 6 Sep 2023 11:03:41 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id BFCAA440151 for <linux-mm@kvack.org>; Wed, 6 Sep 2023 11:03:41 -0400 (EDT) Received: from smtpin14.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 8F2A9160D81 for <linux-mm@kvack.org>; Wed, 6 Sep 2023 15:03:41 +0000 (UTC) X-FDA: 81206491842.14.E2754CD Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by imf04.hostedemail.com (Postfix) with ESMTP id DC77140062 for <linux-mm@kvack.org>; Wed, 6 Sep 2023 15:03:38 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=sent.com header.s=fm1 header.b="s56TOG/g"; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=dsbymiPb; dmarc=pass (policy=none) header.from=sent.com; spf=pass (imf04.hostedemail.com: domain of zi.yan@sent.com designates 64.147.123.19 as permitted sender) smtp.mailfrom=zi.yan@sent.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1694012619; h=from:from:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=X7/kZB7lpmBCw2k1unMB2GujXf55nXH6oT8ByqeAnAs=; b=tA5h65ebd0wKNIYuGhFvWEg78woV13O44fUyZWMBWSUe7HoxS8scTJFN7rqqsRXzix27yk mEWLlyjA7t39mYJSmDjv003gdwIzYioU/A3GqCDK9Iz2E9Ory0aCNVErx8G9jhl888/me8 WN0+Nv+5ddJIeH+y6c/z9LhjtitKxAk= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=sent.com header.s=fm1 header.b="s56TOG/g"; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=dsbymiPb; dmarc=pass (policy=none) header.from=sent.com; spf=pass (imf04.hostedemail.com: domain of zi.yan@sent.com designates 64.147.123.19 as permitted sender) smtp.mailfrom=zi.yan@sent.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1694012619; a=rsa-sha256; cv=none; b=Gd95r0sX6dcvKufrJ9xnKGAjyMJHMHkLiTsqssO2zVnqSAdPLMnN4ciMghSYul1u0UhVWM TOuMRKGm+9pMTmICgUo6R1zYLbml8+oUCZ7F+PowQnxYgSMzzI/9ArtD/pjbzvGJOhoZAY o+weEtDkU1ENVncboGiNNPOQEaOG6UQ= Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 40E453200904; Wed, 6 Sep 2023 11:03:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 06 Sep 2023 11:03:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sent.com; h=cc :cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:reply-to:sender:subject:subject:to:to; s=fm1; t= 1694012615; x=1694099015; bh=X7/kZB7lpmBCw2k1unMB2GujXf55nXH6oT8 ByqeAnAs=; b=s56TOG/g3wW3xdiIqMGnd+ngS6IcPFOJrgFciXKXnjSSlKj8Inc gmOg53MxNHCTU+4MczmgLmSph3GPf+dxfRb5d6RJmtabLNp16TcmtIQeYj53m14O T9BvHZZ5HcHgHl2ccLvCgVbR73GsLu1VXPNu3K4/bCMRea5wTpWW5oZ1x1+N4HlC 3IYNRuCZ5ehUJ3fAsJRaVmkV/AAy2x85yhX4BDK94tR7AWi73acL19o92+oj+JaQ bxr3F/dwKY/UI39cMU59sNCk+jk8xeMn9LMBSBDkK3iJu8rw5/KD7x8+nf1+Jlo6 C9z4I3J/habuZfvWzbufCWdsbiCRpIWnEpQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1694012615; x=1694099015; bh=X7/kZB7lpmBCw2k1unMB2GujXf55nXH6oT8 ByqeAnAs=; b=dsbymiPbH/noxVmpwQtJWj92IfMyXpQwtT4715YnPxEu8wfhQ42 K/L4u3Gk9fzKNgeCzhS3sqGqqIn2mvqETe1CUukPuAINgN+pmvIlIKnWQOAU6C7i V6BNXA4eyYrWCUB+JCg9pY1yEPjtOqcwNGDY6C5T+uXMqDP2hQ6F+PAOyiLMN1TI lPtzNPQ1+eAkE2XV7vOH5lSQdPC7Qm3rHP9+4DITK2enroBBmsRHzh/gaNAvNeaE a4nIdAya9YboYqVIE3dYeHcqGgD3oxb1oiG7d3MC8X3KYlchpUuk+QwYKS8RSkJi aSdUgeOU/Bs85BZdWwyEJXsRdfOqvu990nw== X-ME-Sender: <xms:x5T4ZEgdUmO5xtmL8fK-F1K7l-Tzm8y0-W3jQEJf9edgrE1L_rbELQ> <xme:x5T4ZNBDm8Zq9TSDHrOIxEs3Q_y2XPDLTMlMLfGF5yMgNc4Oz4V19cH_UWtguMgaC nty5TA20q_CKkieLg> X-ME-Received: <xmr:x5T4ZMEXKepRL1GBC6gIzp6EkD1-lWq43AYLbo4gBdtW3AhZg74w_Ofq6ZTSTM4ihACjE6pYY8vHXNBnBKVp8W7NayfxKHh3ZOe6B1kOexA0OBmhf8g_a2e1> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudehfedgkeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne goufhorhhtvggutfgvtghiphdvucdlgedtmdenucfjughrpefhvfevufffkffojghfrhgg gfestdhqredtredttdenucfhrhhomhepkghiucgjrghnuceoiihirdihrghnsehsvghnth drtghomheqnecuggftrfgrthhtvghrnhepgeeghedugfduuddvleehheetgeeltdetieev uefhffevkefhveeufeeiieejgedvnecuvehluhhsthgvrhfuihiivgepvdenucfrrghrrg hmpehmrghilhhfrhhomhepiihirdihrghnsehsvghnthdrtghomh X-ME-Proxy: <xmx:x5T4ZFTvpSfz6hwl9nz9mJGvG37WNxdrH0kE7HOWooiuHl8cFRYm2g> <xmx:x5T4ZBwjYKxh5Pbtt8jHrNeFh2zfvT4ME-aNOzFYDsmWH_pECV9Grw> <xmx:x5T4ZD63MOtJmF4CJB0FsmZoTZMlvxs8pd1uhtQRhWh2NLxzyCDG2w> <xmx:x5T4ZGq0xX0W3K7rDi664LxRTh0UKuQ8QnB_x_3LuEVcftRSmHraOA> Feedback-ID: iccd040f4:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Sep 2023 11:03:34 -0400 (EDT) From: Zi Yan <zi.yan@sent.com> To: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Cc: Zi Yan <ziy@nvidia.com>, Andrew Morton <akpm@linux-foundation.org>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, "Matthew Wilcox (Oracle)" <willy@infradead.org>, David Hildenbrand <david@redhat.com>, Mike Kravetz <mike.kravetz@oracle.com>, Muchun Song <muchun.song@linux.dev>, "Mike Rapoport (IBM)" <rppt@kernel.org>, stable@vger.kernel.org Subject: [PATCH v2 5/5] mips: use nth_page() in place of direct struct page manipulation. Date: Wed, 6 Sep 2023 11:03:09 -0400 Message-Id: <20230906150309.114360-6-zi.yan@sent.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230906150309.114360-1-zi.yan@sent.com> References: <20230906150309.114360-1-zi.yan@sent.com> Reply-To: Zi Yan <ziy@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: DC77140062 X-Stat-Signature: 83hkpz5g87nefddn5cdi8aqpyw7bkjf3 X-HE-Tag: 1694012618-662023 X-HE-Meta: U2FsdGVkX1/v6Y6rD5gv72a0/VvWKg5eTtUrNre5zK5EiCyfJ2uj3KUauZ/NcH0h78SCks36AdfVpuzy8k+dpSvYh20PcZd9PCR4W0VJ4IaGVQ+Cm/RJVaKPSDLIfDjd999ZXSOeMU21IVpta1LBh5biF3C6ibUjLfpv/N9FuEKRsl/7Q0mufdZwFr+NqbQgkdwQ0JcZ5nCtWIoAliaSCSQbY2A5IhYugK/+la2AQRZNmoemtAVQQY2atspg1cafy6/TOUmswlG+8UPuwwMCczf4vqCOmz5cHgMJoHRzmDjcxJkriKYtWQH5ldq+iM/6ZftlUXaPHTFu5BmkVQ87sc6LdGeD5nXNVS9gAWRUgSiHYb+VJUb1NlsX3waT+KwY1uYcHuey4jDtpZNu8Aq16lHDjgfQnXBplE5EwuIqoSZP/cIpW1dX3BFIXqq+XSkyTtaKxDx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Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
Use nth_page() in place of direct struct page manipulation
|
expand
|
diff --git a/arch/mips/mm/cache.c b/arch/mips/mm/cache.c index 02042100e267..7f830634dbe7 100644 --- a/arch/mips/mm/cache.c +++ b/arch/mips/mm/cache.c @@ -117,7 +117,7 @@ void __flush_dcache_pages(struct page *page, unsigned int nr) * get faulted into the tlb (and thus flushed) anyways. */ for (i = 0; i < nr; i++) { - addr = (unsigned long)kmap_local_page(page + i); + addr = (unsigned long)kmap_local_page(nth_page(page, i)); flush_data_cache_page(addr); kunmap_local((void *)addr); }