Message ID | 20240426195247.100306-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 6974CC4345F for <linux-mm@archiver.kernel.org>; Fri, 26 Apr 2024 19:53:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E7FD26B0093; Fri, 26 Apr 2024 15:53:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E07E66B0095; Fri, 26 Apr 2024 15:53:05 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CCE5F6B0098; Fri, 26 Apr 2024 15:53:05 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id AC3A46B0093 for <linux-mm@kvack.org>; Fri, 26 Apr 2024 15:53:05 -0400 (EDT) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 7040AC08D9 for <linux-mm@kvack.org>; Fri, 26 Apr 2024 19:53:05 +0000 (UTC) X-FDA: 82052731530.08.D545169 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf19.hostedemail.com (Postfix) with ESMTP id D48351A000C for <linux-mm@kvack.org>; Fri, 26 Apr 2024 19:53:03 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=eLYNgvdE; spf=pass (imf19.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 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=1714161183; a=rsa-sha256; cv=none; b=BMZFZDfr4LthT7x3elbmBw+CYD+Xio7rJsB+iQCpVO4WHVoDAHIwfODUjS+LWd3CTfepLS r5YhGgpBnUygF9yQk3a0ESWStRb+U3Df8OPYrrSPipA7410oakF2FeYbi0ftZ7ZwdYR1Fe pDqh61qn+klfWKyORSyDxxa1rfpYqgs= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=eLYNgvdE; spf=pass (imf19.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 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=1714161183; 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=j74d4+BPbiRtnXrjIKS0sx1DHW3jEgfXZ70m7U5yXTM=; b=PeiR/kNwBB5VGeeo+bvugvO7YR1MnMf7a8hocYArp9wL8NrNu4uCG9wiAbKTQBfS5vf6yq 6EAeDihXD3yw16eAXis7Fs8ZnPYCMlyos4GjW+VghmnuOh4EdDhAZ60DxaRRDV3Nyt9xpT w1JLDMEPxPzapvPq8W9jx5GO+oYovlc= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 0B9FC62138; Fri, 26 Apr 2024 19:53:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65BCEC32786; Fri, 26 Apr 2024 19:53:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714161182; bh=7DU4R9EMCr6vh5Iz6aftKnw6t4Q6vqj1u1UiBTV/q1o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eLYNgvdEpIUlrtvvzOSTquF5rJ5xcLuqkYJPZFObcmdIo933ByRPadsnhaF0urhMB YXynjowLyC6EWBNiJliRtGXw029dtrwOIwudD5yaPt4yNHLnmXqlD2DS5ggEWQTgqN rIQJYVPRkqgRVjpkkKGWniPqQTrUE8DeZesGCd6g/lF2VqnM4aOXomTQ3nVbj7zqkn rBZB1FjzeYMIbgMTBCVONBq+8wGBdUGzknY4oZRM5Ucu86v2w+Ho8KeAZlGuURO4pB 1vZNtX39au9u7qXJ97WSUfJnGkvy1iwJ8AlfyUQZzM9K+AbRij2G3wAzPxqfSLFBZD 3LUwJAuzP1l9A== From: SeongJae Park <sj@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: SeongJae Park <sj@kernel.org>, damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Honggyu Kim <honggyu.kim@sk.com> Subject: [PATCH 4/7] mm/damon/paddr: implement DAMOS filter type YOUNG Date: Fri, 26 Apr 2024 12:52:43 -0700 Message-Id: <20240426195247.100306-5-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240426195247.100306-1-sj@kernel.org> References: <20240426195247.100306-1-sj@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: g97iu5y54ec6y5az7oup8exsz8mb6ii9 X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: D48351A000C X-HE-Tag: 1714161183-843643 X-HE-Meta: U2FsdGVkX19oaVnhFZiac6ENGWLuIDCBmucIMbGSQT+uxsIOGHIZsOtt0IQdboWeuy1NTU6PvERMhxq0jFYPV5PNLJ8LEwlvRbtGB/G2Ta7w6nIGLYpENabZseDRHLfcS5gzNBiPuj5eDphlJso+t1gMavGTWmZg4qkldB5SV/DBIFrnTy+dE9CupVd0FGrd3nH93XkDqVF2BS9Zm6X/8SmYHl7xtdw6sec+AINlfFL3UfrjGg5knay4O3FURRA3EwH7S8g+P9kmIbGr330fB1KDCSVBqs6YmC7zb1WS41NbXZ+vlVEz0RT0/zAD7Z3CpQQYgoK9QqMxFuwB5tE5VMRJH/oU2xi9vjU82RGZWmsBXsthQWqLi2M9H+FC3mZPoFxn3cnTQ4g/bGwFtcPnvd4PQlbO4BMJ9CCSdRLOGcrPDm9rgLMcikwOyuAYjWUlYcgJMc9Z6mDl61TmCZTE6snclw0MR3jiI/zn7bFoE4plUZwdGmtq8NEoAeqSohU/XyPzrYjoG2ENKt8RQmJzaofu2frM95rXQAjS034EUdQqiahmgSXx6HQsc5aDdHiBJHCGLiNwjKXm5s71EjlzmcDLp+o6+fWgUh6D8jGX229Eip8mFDGQpaWSAmxoWfLoredbW0mZuiR050phlhIYVjVtOLqqWc7NFakXoPET/CUtm04+nN45kQAb6FqUNQYoR1QSopaMegSuzgEIbsztIE2obCm4E0ydxpXf0lJaiBQjBa61mLHa4ME4f8jEE4CERrH+yV6M3O66Xs0W0kopV4Zkhz1YV8gWyGSFdu8UH7xkE4IVd0fZoxs4CB3hfl5EpC7Qj7ny9akq3JjrN4qghfedV2Jy3a0C2FLD7fFd6KdcYgzGOWl0JVEfLgnPtTNRsmiiPg3Uvj7sUZ/qM+HBWnGh8kTsdlZJZzgPFf4W9NumTZlivhLiAEJqZPzHeqXhvGfxxSbvTWoqtFJfl/v fIXUyKKg yU1tOc+Fd/518IM2lYTupzHdik/mluWJdFopZdlkePU9xIr73RpPXPXxF7fJqHW7VZrLN1BllURzzprn2F7Cc8mo+kwL3vBMWEiSQ7V57/CUvSLpIutCxo8OnRZzUOrhfjIVkiTzGbJctLc4WA3c16TU1hyvuUSGToTVTKlBRvQJmwlf/hOZ1OxdKweaVONwFnWLvns0P0lAEQ9vyjCenRB/r0Ifoie5Z7Kz9H4KCrhOXp6etGeAVbVTBab0v48ofWLktU3R3Ur/ubT46vrB2zHmOoaYRDvct1o9lEK62G0ZWUHU= 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 310b803c62779..5685ba485097d 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; }