Message ID | 20230303084343.171958-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 v21csp292287wrd; Fri, 3 Mar 2023 00:31:08 -0800 (PST) X-Google-Smtp-Source: AK7set+3jtWecVFlzPve/ZqobmKour+aBoXvH6XN3CrguKJPzDZNgjZcbT1e/i1kGKhpVhHDZRxM X-Received: by 2002:a17:906:1846:b0:888:1f21:4429 with SMTP id w6-20020a170906184600b008881f214429mr859183eje.19.1677832268503; Fri, 03 Mar 2023 00:31:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677832268; cv=none; d=google.com; s=arc-20160816; b=UzRMuLolzBqr49z3NNW9V/qS1y0oRSMOttfNyuYoGC4o0G7T/L5NoJdHy5mtUbqgWe Sb0DJzMn0bfWTXHMg+Urq3tMG5wIhgAI26by5wj937py3xoxQeyLM4Acnoyun5Zvt0nv HDXrrEgFHkPJzmTaCuIdMeIQov5irnPSdJDL1Ghu/Z/uIciUV6NjUFJxzCODVQucdFHN 8JJq+lXzP+bWZ5UeTrq1bggLeQk+AoJ5zyPzzcERXZMZr9XbDMPWdNnQIfJGwh6TZ5Ay r+M4Uv2WYoZD16JIJoS4dMUzrgpPjGm9OJt6au0q5Nn8aViAJ6tdlJIP+nMokxWSqtHJ S9Ug== 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=z/eoHUbnLLvX2Vfz6vLz9tYjjrkJrA8SYbsQCZ17V5o=; b=vEdSwtMvrfKR1Un1HT+BqhIcE85VMfEB8g0Jaa085EITBs9S1hE3sCdbIbwMzpMwBS RXU95ixBhSIpJmOGcvNxpY13CH/cdqr0hPJ7SmdiahCu6L+v4nJehTa0T52VwENq15di k0mIEPyTWqBpoR6aBXmbJoFICLiWem1931fPW1FWzVybNB57M6akB1NxqDkenSGhiE/T fihKsGcGGR1VZ5v7SZ/NJZTilB8ye/pO5AepwXhM0UDi/W9f8JDtY6KUUr/GsoDce7eU BqdMQLZaQPsdHLo65nHsJRt8wW2zj3v4XKvHrjOOx6eRh+3dITMHN3IT2s9pNpYnQT+k bF2Q== 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 c16-20020a056402121000b004accb00442asi2330527edw.168.2023.03.03.00.30.46; Fri, 03 Mar 2023 00:31:08 -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 S230071AbjCCIYv (ORCPT <rfc822;davidbtadokoro@gmail.com> + 99 others); Fri, 3 Mar 2023 03:24:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229861AbjCCIYu (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 3 Mar 2023 03:24:50 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1C3B5258 for <linux-kernel@vger.kernel.org>; Fri, 3 Mar 2023 00:23:19 -0800 (PST) Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4PSgr53cdczSkdP; Fri, 3 Mar 2023 16:19:49 +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; Fri, 3 Mar 2023 16:22:46 +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 v2 0/3] mm/damon/paddr: minor code improvement Date: Fri, 3 Mar 2023 16:43:40 +0800 Message-ID: <20230303084343.171958-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: dggems701-chm.china.huawei.com (10.3.19.178) 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?1759334649016791479?= X-GMAIL-MSGID: =?utf-8?q?1759334649016791479?= |
Series | mm/damon/paddr: minor code improvement | |
Message
Kefeng Wang
March 3, 2023, 8:43 a.m. UTC
Unify folio_put() to make code more clear. 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_young() mm/damon/paddr: minor refactor of damon_pa_mark_accessed_or_deactivate() mm/damon/paddr.c | 33 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 20 deletions(-)