Message ID | 20230308083311.120951-1-wangkefeng.wang@huawei.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp205097wrd; Wed, 8 Mar 2023 00:19:16 -0800 (PST) X-Google-Smtp-Source: AK7set8NS1G2Z9/jCwOh0D/EukXD/lgn3uCs6Wc9PPr8sMGLTBR2xx4aZ6UfKbCBmRcxdAo1Sa5s X-Received: by 2002:a17:902:d48b:b0:19a:7622:23e5 with SMTP id c11-20020a170902d48b00b0019a762223e5mr21958762plg.4.1678263556516; Wed, 08 Mar 2023 00:19:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678263556; cv=none; d=google.com; s=arc-20160816; b=OJB3YkahPEBdm/7lWnuGIhUwOX1EDBDbVidJE/jvNXYaNIZ9E97+wvyEtOjafVnyRF tZlBKn7fVjtkWTaLCVPfstt951MGHvtte5ZUxlAyke3+lb4isqUgqMYT5oVAPJrKjOXE UHhvPGdpL8RVMKgO5EIEiM4qcIRVJ6zJRohhlctTYhkf+n3yVjD+2zjhGNMb9zDN1OuO pLooh8L+8uNpbyj2a3+I4Igkq76lXjGAdq0UFs5qhcR2mMunoa8OkcY8RwXxPAOlm2k+ nIoJya3fvKjb/5LX45/az0LJfH1NjE6plIpqSg2MotpJ9+TgmbNpOuvqz87Ax9W+zoxu lZBw== 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=BkHEPWrsRMk9q7J8Bp8maGYDsWSakbCS8E69BAK29+s=; b=kqJThN3p+yZTU5Hq//aE9RTQeI3oJz0yKN+3k/5DYeRlcAfnRaNFIN8ic+zXmaO+LJ wbjryBLIcirrtFNcnW+vZQ35I8oHOZnMvrbSCcJ3vt0Aa4UMMyFY+HP0KgHMIBAetYER Cb1qTFd/Z8gbq7uFAJ/QMLxH1XVKbTQryND3Xzt2kxg3ns3mydiLwucqFRH+IEX8WZZg WbJh5mlehsWV9YMMpINrwn54R7PFe9RqlOfkqB2RRKFo8T+YsyApAE1qGmoiln39jdng Vv7lyBg/WU8LQUgAEQcRCzBZBo4qomEuJHKPh650IN6BxRmojCIUHUnM6ZukRebPmAK9 HjOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q15-20020a170902b10f00b00198fca8211bsi13088775plr.57.2023.03.08.00.19.04; Wed, 08 Mar 2023 00:19:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229886AbjCHIND (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Wed, 8 Mar 2023 03:13:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230030AbjCHIM4 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 8 Mar 2023 03:12:56 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1EACA0F30 for <linux-kernel@vger.kernel.org>; Wed, 8 Mar 2023 00:12:48 -0800 (PST) Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4PWlPF3jzmzKqMg; Wed, 8 Mar 2023 16:10:41 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Wed, 8 Mar 2023 16:12:28 +0800 From: Kefeng Wang <wangkefeng.wang@huawei.com> To: SeongJae Park <sj@kernel.org>, Andrew Morton <akpm@linux-foundation.org> CC: <linux-mm@kvack.org>, <linux-kernel@vger.kernel.org>, <damon@lists.linux.dev>, Kefeng Wang <wangkefeng.wang@huawei.com> Subject: [PATCH v3 0/3] mm/damon/paddr: minor code improvement Date: Wed, 8 Mar 2023 16:33:08 +0800 Message-ID: <20230308083311.120951-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759786886926630048?= X-GMAIL-MSGID: =?utf-8?q?1759786886926630048?= |
Series | mm/damon/paddr: minor code improvement | |
Message
Kefeng Wang
March 8, 2023, 8:33 a.m. UTC
Unify folio_put() to make code more clear, and also fix minor issue in damon_pa_young(). v3: - as SJ split the bugfix from v2, and it has merged[1], only do code improvement - fix a missing folio_sz update in damon_pa_young() - add RB from SJ - rebase on next-20230308 [1] https://lkml.kernel.org/r/20230304193949.296391-1-sj@kernel.org v2: - use goto lable in damon_pa_pageout() and refact too more functions Kefeng Wang (3): mm/damon/paddr: minor refactor of damon_pa_pageout() mm/damon/paddr: minor refactor of damon_pa_mark_accessed_or_deactivate() mm/damon/paddr: fix missing folio_sz update in damon_pa_young() mm/damon/paddr.c | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-)
Comments
Hi Kefeng, On Wed, 8 Mar 2023 16:33:08 +0800 Kefeng Wang <wangkefeng.wang@huawei.com> wrote: > Unify folio_put() to make code more clear, and also fix minor issue in > damon_pa_young(). > > v3: > - as SJ split the bugfix from v2, and it has merged[1], only do code > improvement > - fix a missing folio_sz update in damon_pa_young() > - add RB from SJ > - rebase on next-20230308 > > [1] https://lkml.kernel.org/r/20230304193949.296391-1-sj@kernel.org > > v2: > - use goto lable in damon_pa_pageout() and refact too more functions > > Kefeng Wang (3): > mm/damon/paddr: minor refactor of damon_pa_pageout() > mm/damon/paddr: minor refactor of > damon_pa_mark_accessed_or_deactivate() > mm/damon/paddr: fix missing folio_sz update in damon_pa_young() > > mm/damon/paddr.c | 26 ++++++++++---------------- > 1 file changed, 10 insertions(+), 16 deletions(-) For the series, Reviewed-by: SeongJae Park <sj@kernel.org> Thank you for your efforts on this, Kefeng! Thanks, SJ > > -- > 2.35.3 >