Message ID | 20230530080731.1462122-3-fengwei.yin@intel.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 4E493C7EE23 for <linux-mm@archiver.kernel.org>; Tue, 30 May 2023 08:06:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DC08F900004; Tue, 30 May 2023 04:06:36 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D4A97900002; Tue, 30 May 2023 04:06:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BEABA900004; Tue, 30 May 2023 04:06:36 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id AF643900002 for <linux-mm@kvack.org>; Tue, 30 May 2023 04:06:36 -0400 (EDT) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 737501A015E for <linux-mm@kvack.org>; Tue, 30 May 2023 08:06:36 +0000 (UTC) X-FDA: 80846189592.09.6138939 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by imf04.hostedemail.com (Postfix) with ESMTP id 6367840018 for <linux-mm@kvack.org>; Tue, 30 May 2023 08:06:34 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=nHUeILLw; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf04.hostedemail.com: domain of fengwei.yin@intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=fengwei.yin@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1685433994; h=from:from:sender: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=jBPCVDHZuQ2wYY4bZMS/Jy+G2//+D+pxOEKs2w0BXQg=; b=A9b0exFHCC2w5CmJY4hO7mzfrWAp5rKpgNUSjkpm5KFUQqv2g08fX952B2BxltSUBFutMt Vff7h/IzC3ahZRJjybCYqxoN+9Xv/ycTpSo+mP41mSgmBHhXcVq+INSGM1oHvo4MtxrSMC i7R2xwkX0XzhJ0KgSCbIWXO0dk/8orw= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=nHUeILLw; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf04.hostedemail.com: domain of fengwei.yin@intel.com designates 134.134.136.31 as permitted sender) smtp.mailfrom=fengwei.yin@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1685433994; a=rsa-sha256; cv=none; b=MhfvMjzTPlL5T1xxRTH24iBvNAY/DJWyvTomoOsZ+EQVdw7hok8L8x4aXkhcydau+guoM5 iDdGgDgkkW+rczHDR/iOkIBzxI54enYud8QdFDuaCJS4dHVWIsqiXJ4zb6EjiwXzi4YfWC 1hszwYe5e2GXxntVKywW7OmLGRod01c= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685433994; x=1716969994; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JECnRzWsjoveNrvZKVFqMJv39FXO8gY9Cjv6t+BF/f4=; b=nHUeILLwC2NcLfUhljJHqZEAEeZrjRlNQZbzqXg0iu1mGGOlsc8Jpk8R vkABtEWN+u9ZN8YmQ6mxLWx7mJotSCBZySx53+TxPbRjyo9QGSM7EOd7u BorX2xFqvb6SRI+ld2IEAKWvQ1RGvNytwg6/oWw2EQUkvy/HvKYVc6jn+ LaO1t3tKbn2yzupLqVUgEouKh6mq/ehUDh7jq3XPTDBFe2kWUVnfW/nSi qi07TScDEOtrO6IIyfBEurajISzmGTgwb6nqjs/f7se5mcX3g8+H3puyJ CYh5Cb/I0mIh5E2GY9Z8JNcHV6//aErbbAwbCaWjKgUo8Rugd7WDxnrpQ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10725"; a="418332165" X-IronPort-AV: E=Sophos;i="6.00,203,1681196400"; d="scan'208";a="418332165" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2023 01:06:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10725"; a="739426363" X-IronPort-AV: E=Sophos;i="6.00,203,1681196400"; d="scan'208";a="739426363" Received: from fyin-dev.sh.intel.com ([10.239.159.32]) by orsmga001.jf.intel.com with ESMTP; 30 May 2023 01:06:30 -0700 From: Yin Fengwei <fengwei.yin@intel.com> To: willy@infradead.org, ryan.roberts@arm.com, linux-arch@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: fengwei.yin@intel.com Subject: [PATCH 2/4] rmap: fix typo in folio_add_file_rmap_range() Date: Tue, 30 May 2023 16:07:29 +0800 Message-Id: <20230530080731.1462122-3-fengwei.yin@intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230530080731.1462122-1-fengwei.yin@intel.com> References: <ZBho6Q6Xq/YqRmBT@casper.infradead.org> <20230530080731.1462122-1-fengwei.yin@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 6367840018 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: d61o39j6f3r6jft4368x671db7qjzp11 X-HE-Tag: 1685433994-994954 X-HE-Meta: U2FsdGVkX1/AhZpvYwei4epZ3GJWnkxPfETO/lSH8wnSRwe+9/Zc798JKgt3B/S51oVWJmspvg9uEHd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RgXmVycnmwdmo3veQxQqY2DF7CtNofXQTvng= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
New page table range API fixup patches
|
expand
|
diff --git a/mm/rmap.c b/mm/rmap.c index ec52d7f264aa..b352c14da16c 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -1330,7 +1330,7 @@ void folio_add_file_rmap_range(struct folio *folio, struct page *page, first = atomic_inc_and_test(&page->_mapcount); if (first && folio_test_large(folio)) { first = atomic_inc_return_relaxed(mapped); - first = (nr < COMPOUND_MAPPED); + first = (first < COMPOUND_MAPPED); } if (first)
The "first" should be used to compare with COMPOUND_MAPPED instead of "nr". Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> --- mm/rmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)