Message ID | 20240311204545.47097-5-sj@kernel.org (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 8A02BC54E58 for <linux-mm@archiver.kernel.org>; Mon, 11 Mar 2024 20:46:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2BD046B0125; Mon, 11 Mar 2024 16:46:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 269606B0126; Mon, 11 Mar 2024 16:46:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 10DF36B0127; Mon, 11 Mar 2024 16:46:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id F19586B0125 for <linux-mm@kvack.org>; Mon, 11 Mar 2024 16:46:05 -0400 (EDT) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id B717580590 for <linux-mm@kvack.org>; Mon, 11 Mar 2024 20:46:05 +0000 (UTC) X-FDA: 81885940290.07.4372FA2 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf30.hostedemail.com (Postfix) with ESMTP id 7A76F80022 for <linux-mm@kvack.org>; Mon, 11 Mar 2024 20:46:03 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=eLvgqV3r; spf=pass (imf30.hostedemail.com: domain of sj@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1710189964; 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=PVxYXcPwHuDlvucLJAUIYq1iY2f3LRUkqxwYC+Y1obA=; b=revXKFBpofHSSwDEySb7TCKMJ2/rD9Zs0W7nAjsoOwaMUEE5VTCcY/GR/x5rZ5Dtezw2TW IFlwCV3j6rfjqM8fSaZrkjViZIqHG8VP1sssyzxVLPs404T1gT5D36cTbfrdrppS2qvpQ9 CFRwA+YUFTDVflgx9bCzACY3l51CA1k= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=eLvgqV3r; spf=pass (imf30.hostedemail.com: domain of sj@kernel.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1710189964; a=rsa-sha256; cv=none; b=Lv2Cqq3nLI4/VvPPD0na9GfO1AiXH+bXraYr2cBBt8h11wb/IHmHZoReIWhutbN09HwduC mM4bYLNTIRqNxc8FRUHPtWVu+CSvl1QE/5nr8+c0ibw4nVkj40uW1DTCnQTn2vMv8yhOdq VfSL0MYKRMeXxggX0fvrDpz0KSgAHEQ= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 715BACE1294; Mon, 11 Mar 2024 20:46:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99101C43394; Mon, 11 Mar 2024 20:45:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710189960; bh=fHultMqP8gCokferFy6tApU0Sk9aroAt2aHpbSo1nsk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eLvgqV3r4YMJlZJBEZKjbrWC6om6P7NHp4+td02wctGQ4N3G4z7GE9qAALIugj8Iy zWuhVw5VPeN5BFBkHQEw2DqnN9PJ8PzP12e7TgKpaglJp5zBNDZGXDv0WhHOd6AiRG /tdhcB0X496jLKbXT1XXDe73H+lrmBfWEKaG3wQHATYab+otN2mFbzqlxdkLmPpyYe PDN2igIJSFeMWgbraZ1APtggzK2pUeRE4QCsdt2fkTarI6TL0DSCzH7KXThT1wdML0 33+Xqm19q6A4lZlgFZz3iU0cMUq8GpK9WvSuWLa3H2gk9OADSIsLpAPWfvMuTED53D lfVd5ZjQ1OwWg== From: SeongJae Park <sj@kernel.org> To: Cc: honggyu.kim@sk.com, hyeongtak.ji@sk.com, kernel_team@skhynix.com, SeongJae Park <sj@kernel.org>, damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH v2 4/4] mm/damon/paddr: support DAMOS filter type YOUNG Date: Mon, 11 Mar 2024 13:45:45 -0700 Message-Id: <20240311204545.47097-5-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240311204545.47097-1-sj@kernel.org> References: <20240311204545.47097-1-sj@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 7A76F80022 X-Rspam-User: X-Stat-Signature: 9t6c73afmjkgrd4bgohw3ogw3695armt X-Rspamd-Server: rspam01 X-HE-Tag: 1710189963-465467 X-HE-Meta: U2FsdGVkX1+D0axC+UuYq0au0IQQt4kI0ubjdA+Hywi3nqR5XuLCfPOrEMM4mHlEmjMrzsfW5DFvZlXlCIGWmYNly2XP3K4X5C5O/S37O3c9ynt3IgJkiBRndvuIwOk7OnVwozoL77QoY2ZWQ7udSliKyhFfn6439wzdkvGJPFs3yHkfO0YfEYIcD5FgkzmER4E/nzft17dlj1RbtgmN3OhlVbuRCl/ExlZgiYQqSUyJIfJSZTr3fFt0kqQGNVA+neuv7TZ45cXxiNWI3XfbcuhRmS9bWpRQ52z/o+JJs6oGlFWNBlPPydZtAtlzgv6F+pYxqZzAmZLka7kWCA8znJ9Uf6FfrSrup6JG4wsZAsFJBLq3y8atY5aAuIuhbJ30AFNISMXhPlv3KXIIuk/C10INnLEEKi2dyGO3Gux9GSNbJ2Zopq+2BO9NKxxJGB1VgK0YQ8V+6Ou9ryUyoB6shQmpIaDqW0VAQYj17C/nHo2J4HekHswOTE0w4fKze/hxSsE+zx4zZIAD0Sli7mr50f5FLKc+2FUZx1TVjN6YFQsSURhbHqZM9hbMBMdOeTz1IOJJj7B4gXglwxZJPXX3Qu+P+4qA0lSxhyxfw6nhLjcwNKjswWXb9hbUAEfRcY9QAb/6qJHOBzauHc5C6VXH/o8zmTsuTO8f6YD5X3208TS92iPnitf4w7fC2XbbzZL3yC0G5iLTnyt7UNxlSMfdjqjkrNQtC/ClNVIrva7Grbt2UqqZ+pxNKQEMM71teerJ/5VgNal8V9Fw1NWJwV8eN1ecTQOIZXcyJIcW4kZhA3WSO0uDnrMQcUXt4dJj+rhyZhgXtlJ97MpR4sbQDaYzcc0yUvSpyHtFExtTCgBtdH3BermBNZLpq/p7XrCT6pcUjjRlI84t6A/f+bG+zD9eQzerjdTXU74KTcPafnpx7wZEOqTiBT3ZHLRl3QvCdQoPiHbkS2M3sZbFE2mDIeT D6lKCCvK sk7I4xxW0nmtKrQrbHqmrJaXsAdVxz4pDUIXlRLZjc/JGeZmYb8TN5KnbqcgrnK20vI+0hjNQcpnINWMLcZsTgkcfg61vG25SWMJ+vGWTAwx9toien6F6k7d0mWGz1ONaOEf+1IIIz/jFkwODHJIua2T7C6PzpHVUqueyNezq3/U+lt+jciCBoRPacddq8suXnMbGZJl2Iit9eay0gshzyxxWtmu2bYcsEfRj6iImD/gy4JM= 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/damon: add a DAMOS filter type for page granularity access recheck
|
expand
|
diff --git a/mm/damon/paddr.c b/mm/damon/paddr.c index 310b803c6277..5685ba485097 100644 --- a/mm/damon/paddr.c +++ b/mm/damon/paddr.c @@ -214,6 +214,11 @@ static bool __damos_pa_filter_out(struct damos_filter *filter, matched = filter->memcg_id == mem_cgroup_id(memcg); rcu_read_unlock(); break; + case DAMOS_FILTER_TYPE_YOUNG: + matched = damon_folio_young(folio); + if (matched) + damon_folio_mkold(folio); + break; default: break; }
DAMOS filter of type YOUNG is defined, but not yet implemented by any DAMON operations set. Add the implementation to the DAMON operations set for the physical address space, paddr. Signed-off-by: SeongJae Park <sj@kernel.org> --- mm/damon/paddr.c | 5 +++++ 1 file changed, 5 insertions(+)