Message ID | 20230926005254.2861577-1-wangkefeng.wang@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp1589782vqu; Mon, 25 Sep 2023 17:54:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGBMlzogdR7GUB+R627npUxnKHVcB88g7IfLY7gzNANkp/ZydFNlCp8b2u74UGrznIcyBx3 X-Received: by 2002:a17:903:44b:b0:1c5:fdfd:e297 with SMTP id iw11-20020a170903044b00b001c5fdfde297mr6459240plb.44.1695689644766; Mon, 25 Sep 2023 17:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695689644; cv=none; d=google.com; s=arc-20160816; b=qQ8NIhpsjHT1wXNqpMF3O7G4TLkgWTBToJ6rrg8PRLfCqxuyakA7GBPIkOxUJYix7k rUuFz8/7YeMxzmc9zJOpJ/VjGrdxLl5et2xHZNqTZ/YEox8ITQPpnEcT3HCD1vEGLfyw WT2oiDV2bKB1lhA2drsNHGGa/7OzIRp9ocBqNRjRvGMZyBazxBGQvcGcjpZ82Dpg0p5U H7RoROp2dZYlSh+6uBbTU2tH9BA74nGp+AW18EYiJrPY7je4jA9iCHuFZDodh+lAyGRT IavM7NsZ6ThrYFLBviIbPRf3qNj0eq+r8UuQEOlog1i9KXzFA210nXitbqtOWyKStiw5 VL1Q== 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 :message-id:date:subject:cc:to:from; bh=YRO6InEM+VYZTQRR37m3LjxCh0XX4o4vBTRQmLLm0DU=; fh=FiTqiBStz9H28Qh/9rW0myzOFac7M9VOPFJTunt8oTE=; b=vi+PzBk/y+yRpF+AS8ZDThFfKY2g7TtCjfU8KOrwgSqfzHeDwWL/wu7lmLoMoSIWRG KAlf4ZsCtN48b/9pvbdX2SHIwJRthO5eS1Q03pTObWrWLnKAi//aM9V+wseQwNrB46Ft RVh9lFz5kgbtSnNQ0FhxD7om7L5Ny3nLq086yYRIzCh/A6loJgaF/89t5bJQzRYGbhN8 jn/7AUp8k/qCSlrOIOCSrokIqcn+DwvH/BvKVaQ1crJmawRXph+8PXIXck8pPtG9YE2m /5A1lQms7SGPmViygsTZVO6CDIRLFMBy9jWbAcvMo10lswyBQur2sxgnvrOzpHegdQz8 nmzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id l3-20020a170902e2c300b001c60d17204fsi4954371plc.206.2023.09.25.17.54.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 17:54:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id E1CC7819D725; Mon, 25 Sep 2023 17:53:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232542AbjIZAxU (ORCPT <rfc822;pwkd43@gmail.com> + 27 others); Mon, 25 Sep 2023 20:53:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232218AbjIZAxS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 25 Sep 2023 20:53:18 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 852C9D9 for <linux-kernel@vger.kernel.org>; Mon, 25 Sep 2023 17:53:10 -0700 (PDT) Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Rvh4Z2q8YzrSt5; Tue, 26 Sep 2023 08:50:54 +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; Tue, 26 Sep 2023 08:53:07 +0800 From: Kefeng Wang <wangkefeng.wang@huawei.com> To: Andrew Morton <akpm@linux-foundation.org> CC: Mike Rapoport <rppt@kernel.org>, Matthew Wilcox <willy@infradead.org>, David Hildenbrand <david@redhat.com>, <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>, <ying.huang@intel.com>, Zi Yan <ziy@nvidia.com>, Kefeng Wang <wangkefeng.wang@huawei.com> Subject: [PATCH -next rfc 0/9] mm: convert page cpupid functions to folios Date: Tue, 26 Sep 2023 08:52:45 +0800 Message-ID: <20230926005254.2861577-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.112.125] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 25 Sep 2023 17:53:25 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778059465122417300 X-GMAIL-MSGID: 1778059465122417300 |
Series |
mm: convert page cpupid functions to folios
|
|
Message
Kefeng Wang
Sept. 26, 2023, 12:52 a.m. UTC
The cpupid(or access time) used by numa balancing is stored in flags or _last_cpupid(if LAST_CPUPID_NOT_IN_PAGE_FLAGS) of page, this is to convert page cpupid to folio cpupid, a new _last_cpupid is added into folio, which make us to use folio->_last_cpupid directly, and the page_cpupid_reset_last(), page_cpupid_xchg_last(), xchg_page_access_time(), and page_cpupid_last() are converted to folio one. Kefeng Wang (9): mm_types: add _last_cpupid into folio mm: mprotect: use a folio in change_pte_range() mm: huge_memory: use a folio in change_huge_pmd() mm: convert xchg_page_access_time to xchg_folio_access_time() mm: convert page_cpupid_last() to folio_cpupid_last() mm: make wp_page_reuse() and finish_mkwrite_fault() to take a folio mm: convert page_cpupid_xchg_last() to folio_cpupid_xchg_last() mm: page_alloc: use a folio in free_pages_prepare() mm: convert page_cpupid_reset_last() to folio_cpupid_reset_last() include/linux/mm.h | 40 ++++++++++++++++++++-------------------- include/linux/mm_types.h | 13 +++++++++---- kernel/sched/fair.c | 4 ++-- mm/huge_memory.c | 17 +++++++++-------- mm/memory.c | 39 +++++++++++++++++++++------------------ mm/migrate.c | 4 ++-- mm/mm_init.c | 1 - mm/mmzone.c | 6 +++--- mm/mprotect.c | 16 +++++++++------- mm/page_alloc.c | 17 +++++++++-------- 10 files changed, 84 insertions(+), 73 deletions(-)