Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp305345lqi; Wed, 6 Mar 2024 19:02:07 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUC77bt0VbT2tRaaOJov61Uh5HMTqxU381O5gaOGvngyEGYxcy2JW0Ui+svdNjKWpqsAwHCFKhxvomU0ydpMhR/EVqghn0OXBrSGEKkKg== X-Google-Smtp-Source: AGHT+IFPayKmnUKqJFdsHDrl/fNnoPgn0O72cfaNB6fxJj6k6hkuNnJhNDgik+XGNNnv2gkaKYYR X-Received: by 2002:a17:90a:53c6:b0:299:7120:e08c with SMTP id y64-20020a17090a53c600b002997120e08cmr14657486pjh.22.1709780527601; Wed, 06 Mar 2024 19:02:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709780527; cv=pass; d=google.com; s=arc-20160816; b=NLc3/Bnoqvzf48Koreu9Z3CpTzpvXwKVMrot72anxR+p4yhvZG6uFjvFPqy+h5WcOi 7X6vnnwEiVC5v6L1pcqsYuFX0zaENSqj73orXLKcNypPrKFw2WZZkNjGQgZ+oV4mFqgT yEm8EB8ep2RjjTEJWIDVLHGSvfgIHz4dvOAZ80N/sn56KVEj9tOZEqSPpd3hszQTgm6i BpX+8KnOpJ+xhp//HbJ+amx8FUIxnthHkqqdGw/IpGbpWYE8tC7XfmzFcO56O42fH7sJ KnrUPgkGlGLOfB1YNmyF+oeH8+G9vPWb1S5QUQQ3qIB0fR+F4iytqbdJhY79X4IVmrcz dX0A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=PKLObw492qyGSLr6A5sSBR5ytCVigRuPnbDjcYv6NmI=; fh=eqAIFcD1itZH8YCcDK2SRUkGgYN7x3jlMaujj1UkxWs=; b=qHrItXwoa2aexyDXn41VKxmZFgaB3Oq7gVg9720neLTY98ts5Yx9LBc56pCVVkV0Mu quc6ia8BZ02wgUf5Zb6HApfLknEdxe1TyB3vAz1y01Bf1qqaaULP2xRv8uhCNWhGuf6u NFFQDCEqTn6HczWOFhqFtC3Lm+yT5/Rwh/jNd/ZdWrV/DQM9cRusGRHG3euwD5/jhTLC +XTtXDaNhiZJsN8ud9hTQ3R7JvpcexCwm6OAsa4ddbkJ0vlLI7kQl+6VqrjHGo7CB0u2 sl/5Lvk1aPBYjAW6LBMfMKEvCIa1dBYOIzlT2yqj88hWRui39tpFi5YuHZY7NOWrrlHw nE6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Gr9yFIso; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94898-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94898-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id u11-20020a17090341cb00b001dcf9785bc7si8991601ple.381.2024.03.06.19.02.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 19:02:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94898-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Gr9yFIso; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94898-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94898-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 28271B226A9 for ; Thu, 7 Mar 2024 03:01:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4752817729; Thu, 7 Mar 2024 03:00:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Gr9yFIso" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6BB67107A9; Thu, 7 Mar 2024 03:00:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709780421; cv=none; b=UkRuRgzdYbw8asoirC4K4VNxyYdmu1sCXefoQIQgm2//BzF8Yg2WFcXhkZ4hJIHFEKsK9uorvSAk/Eb25iDkJ1qnUSZC00oUgGL1WraVYLrhXmC3tdmsp1USVx3xfFjyGOdFxeOAhANZCL11oanaL44HuGCw3efvVl3Dnm/F2Oc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709780421; c=relaxed/simple; bh=T4Zlt0HI2JO9pfzPw6anb118M3jARiv+TpO7SVPb1+s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=u3JxvpEOsVzk5o5q2kUg+mFbCs68sUSeobZx0KUbFdSk8On4C9juCqaZozd+BVSGq28Fh6leJsF+Tzfe0r9m4n6dlow34l4DoxdE1gwNjJCeR/79OE3J+MKhpH5Ib3tZKMDhm8X29Hy7s/2qnayk+Z17aqjgaDpgIvWaE0cZO68= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Gr9yFIso; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CFA2C433A6; Thu, 7 Mar 2024 03:00:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709780420; bh=T4Zlt0HI2JO9pfzPw6anb118M3jARiv+TpO7SVPb1+s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gr9yFIsoRpLje3SvSmfKYtWNR0uF3miMXc3LPHKsQdFSm9I+Tm4opJXvrkVMMmD3a jLeGpR1MNiipgS8Fs1hljL1UEMO0+qd9APCsbYJjrn0vZbc3dGYayyBIyW4qw++Q+f FJIxtv3yoBl4sUqUdis8IjJkjkkUm2xKA9Xr/eGFcN/S8cIiuRVBeWm636Z3k6qigh aMetigmopMzSlpeWgw3m1T481zUJtpufmVO0T2zISAyN/1SRgZUWDXOyKpgzLiNE30 hqoEhcnBLYXzqzwYIeHdQOGTb9wQAQI64t7ETWJVBakfeE4XdXny8xIed3YHH5t28n lfVc8S8ugzlNQ== From: SeongJae Park To: Cc: SeongJae Park , Andrew Morton , honggyu.kim@sk.com, hyeongtak.ji@sk.com, kernel_team@skhynix.com, damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 3/3] mm/damon/paddr: support DAMOS filter type YOUNG Date: Wed, 6 Mar 2024 19:00:13 -0800 Message-Id: <20240307030013.47041-4-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240307030013.47041-1-sj@kernel.org> References: <20240307030013.47041-1-sj@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- mm/damon/paddr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/damon/paddr.c b/mm/damon/paddr.c index deee0fdf2e5b..52e4be7351cc 100644 --- a/mm/damon/paddr.c +++ b/mm/damon/paddr.c @@ -209,6 +209,9 @@ 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); + break; default: break; } -- 2.39.2