Message ID | 20231103140119.2306578-11-wangkefeng.wang@huawei.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 91104C0018A for <linux-mm@archiver.kernel.org>; Fri, 3 Nov 2023 14:04:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DD561280027; Fri, 3 Nov 2023 10:04:11 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DB48B280021; Fri, 3 Nov 2023 10:04:11 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C4AD5280027; Fri, 3 Nov 2023 10:04:11 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id B0F0E280021 for <linux-mm@kvack.org>; Fri, 3 Nov 2023 10:04:11 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 1E4D9B61E2 for <linux-mm@kvack.org>; Fri, 3 Nov 2023 14:04:11 +0000 (UTC) X-FDA: 81416812302.15.2BAB1ED Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by imf05.hostedemail.com (Postfix) with ESMTP id C949F10000B for <linux-mm@kvack.org>; Fri, 3 Nov 2023 14:04:08 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf05.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699020249; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=etASjzJe50wrJU9UBMk5yCoyKqr7D2lHehFpSzts/t8=; b=Q/FpvRf5JCcz0TIgj4g5ZrlAGL690GSm7z+YGa3EgJWP8O6PUh08sv75DPgPh6+Gl8jn+4 VW8/aGZa1YcQz3i+3lG1eLdpHsJoXY2we01LL2FluZl1sYnsLqcqoYg+jscHhVABhDpSxN tznkcHuGENhkSY2gBSrpmSQ4CURXq0k= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf05.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.255 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1699020249; a=rsa-sha256; cv=none; b=mgR+4igEDKLnppaCiamsl9Lkazc1dgUT7nJumgPUFAjp3QlB+MAEjPxm7ug8D0ZW3PQqJE bUrtULg/v+gGtMVPe7I4JkpP6xA/4p2KB91gJ5DrPVeReaWhqlqixFevKAluptclDNYwwP eCDZ3/HK9xhIseKva2bGxSpbQzgBaFI= Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4SMMpQ084Pz1P7nW; Fri, 3 Nov 2023 22:00:46 +0800 (CST) Received: from localhost.localdomain (10.175.112.125) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Fri, 3 Nov 2023 22:03:47 +0800 From: Kefeng Wang <wangkefeng.wang@huawei.com> To: Andrew Morton <akpm@linux-foundation.org> CC: <linux-kernel@vger.kernel.org>, <linux-mm@kvack.org>, Matthew Wilcox <willy@infradead.org>, David Hildenbrand <david@redhat.com>, <linux-s390@vger.kernel.org>, Kefeng Wang <wangkefeng.wang@huawei.com> Subject: [PATCH 10/18] mm: memory: use mm_counter_file_folio() in copy_present_pte() Date: Fri, 3 Nov 2023 22:01:11 +0800 Message-ID: <20231103140119.2306578-11-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20231103140119.2306578-1-wangkefeng.wang@huawei.com> References: <20231103140119.2306578-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected X-Rspam-User: X-Stat-Signature: 74o7sqak49eafaw3985iuk16zjoh79nq X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: C949F10000B X-HE-Tag: 1699020248-597814 X-HE-Meta: U2FsdGVkX195WKmZRHkvqdBj7BmtB9oJxXaf5DYUrG+51PyfWyuWFd26U386rq0/0nSi+cmn88u3Wsf6UOaJYcHsf7PLJh/IkDF5AQ0KPlISphlB0zq2jWWiweFx/oQ5bo5FP0hvHVleJ2jaYiH1JrcXubhvv0M25yAV6mEnYjp0QPudEdfANFqHSQzjknkbFkOIgj7/iqcyjRxCtxvVU3rC+/E9dFk4Dm3lTFDLL0Y+C+Q4UasKvxfuJNHyOh1Af79RVr/Lm19G1XCM/tSEGXP8b9btMpKHZXUPDyEay/zdrTMeQKOPRmb6gzijt6z/kK5fPeSEHOir6gko+sJ8b8LuYTLrMnoxazUHUpU+ooqy41BTY6/XE/EPO9KdZJRJMq+ZoL60mAfeeCUqaCG6ce+rI0CBth5iXKZQnrGFur0oyww9+5ylLoLnaL+oAm2seIBI0pVDJrJfxTOuRQSo18GCJJv2+TN2A5JL9F8x462y02+j3rugDAcPRScD5gyLWPl4rXY0WDgvcADgDCpkG6eCnhKHGzD16DyYH3ozByymm5SgmDVLfiz5GiRQ2/2vgU9WthRWbJZrx1hWQc02bXrYEcCIvC62Qzx5yPMfStpZeyvpwMM7YRmVHpvqtFrYyfS++bGWCgWj40SeF+n3d6yCUYdxQq2t++5Ipvxh1RKdrO+me6h0xd+GJiC17/BYXiUTwAXsxckef1uAKKkU33YtI8dL4UtmrQ5mH2ynL+TnDyDAcagJzuNAzsrW7109ODxlVm5uTuvQceZtTwCZ3Hl7xMJhprEFV6XZKJRgZngqmhzgw6anKf3SSFUHyR1oDULbNgoSD5uUZCvZt/cCLcYsED0GNezhcxelrnb7lMg143A31a3xlHUgHWlTFzSlQOQQaN2ERXuHYaefa6f5+PJkfiV2OB9KVlbJEa8u/P6D29SaA++yXZAsGDnM5a+U0kJVhyq4YxGVd8u6YFW v7CKcLcb RtDVA4p5Szhcsy5MKRgFrVDAVf68i7vZ8dlBQPsREvWqlZSaKvtkMisRLvWDbfHq9URR8ZOTXWkCgqEAVATfUJTwoqEJYNZuqnwtWb+0G1JTkpWBDyumb5L3TJY/N9MqPV3VULFtaHV2pXWavkfm2T+uSt46/9+qmoF6qorevN8/MR7qEZuhajLFuEKkk1jxuG4j1 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm: convert to use folio mm counter
|
expand
|
diff --git a/mm/memory.c b/mm/memory.c index 09009094a5f2..d35ca499bf1c 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -960,7 +960,7 @@ copy_present_pte(struct vm_area_struct *dst_vma, struct vm_area_struct *src_vma, } else if (page) { folio_get(folio); page_dup_file_rmap(page, false); - rss[mm_counter_file(page)]++; + rss[mm_counter_file_folio(folio)]++; } /*
Use mm_counter_file_folio() to save one compound_head() call. Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> --- mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)