Message ID | 20240130013549.89538-8-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 D52E3C47DA9 for <linux-mm@archiver.kernel.org>; Tue, 30 Jan 2024 01:36:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7F9B96B009D; Mon, 29 Jan 2024 20:36:04 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7AA3A6B009E; Mon, 29 Jan 2024 20:36:04 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 64A346B009F; Mon, 29 Jan 2024 20:36:04 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 469446B009D for <linux-mm@kvack.org>; Mon, 29 Jan 2024 20:36:04 -0500 (EST) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 1FAAC1C145C for <linux-mm@kvack.org>; Tue, 30 Jan 2024 01:36:04 +0000 (UTC) X-FDA: 81734261448.10.C5D6C8B Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf06.hostedemail.com (Postfix) with ESMTP id 87E3D18001D for <linux-mm@kvack.org>; Tue, 30 Jan 2024 01:36:02 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=U70W3FmG; spf=pass (imf06.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=1706578562; a=rsa-sha256; cv=none; b=JmVc/dHwO8uqzfX/cbzj730vFJ/MUa4zJS0Hzn9bHi351SqnvwvbLd7TW1PW8a3sNwRsS4 +70afwfS5s5uG2zzo+DbxX/LNVFwamngpfQmXbpcljPl8gsTnjU3m4DZldKvgz5k6oZb4B NQdr3vsQsf37y9RK3c0BWbkGrngdBhc= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=U70W3FmG; spf=pass (imf06.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=1706578562; 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=JZ9nRYmUd2LKEQFqpzPE3bK5iXZnlL1JMbCz7lLmhrk=; b=OrywGgA4g1uQkr4/k+CFbhyU7XnB2ryOgGk8FcI6AC+dieME1yytKboPyZkTbLeZeAPRPv 0fT9l0kC5Ifskq6vxzNg8lY4fbVgIQYxdvIkmfsbDkjMjbMC0AbcYlhMoxMWJ77JIOBFSZ nW5C/iYkuiy9sj1bAJsVwSlf2wa3vhI= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id B585C62632; Tue, 30 Jan 2024 01:36:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 088C5C43143; Tue, 30 Jan 2024 01:36:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706578561; bh=6XVXKH5SHkCRbfNXw+ACfRyxafwIyett+q0yka+zTjo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=U70W3FmGU7i5j5k+6FsO/9Kid8M057PLCj+ZqfqXtFpo2kZarzQkd/flxN8967gcy BO5hanenOLhNlpphcmPg8RgJSHXXVq4VWja4IuUlW+BfXiZO8Xw/WxMr9JoENbpPnY 41z+vRNmkYfoWWXOrYWap8yCizoBFjDT0UEhuTvvvUfOzE0NI2B8VzBW/kKzsi2CkP 8lT/oGQKMqaNivBOVAl1nQ5gOPaEUS0+qJTmd8BKagGH9QJVjSVX25MZ3Fwj8OTm1Q KPMztpTPLxUeHrinN56K11jl8ae4cYwPXuSh0FywWB0wpLls7aEzSo8bx51ThXDANj +WE+4TPfYD/WA== 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 Subject: [PATCH 7/9] mm/damon/dbgfs: rename monitor_on file to monitor_on_DEPRECATED Date: Mon, 29 Jan 2024 17:35:46 -0800 Message-Id: <20240130013549.89538-8-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240130013549.89538-1-sj@kernel.org> References: <20240130013549.89538-1-sj@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 87E3D18001D X-Stat-Signature: nrkde9rinx6nakfabxcgp5n8uahpd6op X-Rspam-User: X-HE-Tag: 1706578562-975905 X-HE-Meta: U2FsdGVkX19h8A5Xf07gz9rFXce2aK/4I6l3PmicmnjaVChTTQTGmqdwYhHKw0KLpkmAxKfpKGCvRdxVky0698ZVn5iIB2bNJ50N8DYzPx4GeeHcota6ILmK956CBtEe4/gKdRasGULtig9lWZEwAaPkneKXGx758VOdXLgp3+p0Mc54PCIu2ag4ZJNlY3B013m1iKq4/73iUWmcmzaZqL74CiXAjUaD/bwhuijMgx+iW+z4ifWrpeLcPa7N2XP7nKKFH5s0fe4RSFfSAUZerxKTdfNI0v/Zh0X+IYzhnIEZKBNkU/hOaqwmoTK59jxLsrGUaFXymBsXmAeIRkcavDvKIpUV682cJFP3GbUnTHu3qN/k2zBzxN51x7DasVelp953e7djlL5VQt1x3frFWRzsewaU+z7nd+QClDNVAm10z7+KowlPuRBV3zsSKON5MkVf82YsYuL1YyhziBdeUJnIasgnkUIvPeO4O1S+EhaLMOzZJaLjoSv8mrZ0WW2uhrRswE1v0VwI648hDQZQg7Z924vS6vox1oH1Eea1j7UXytG6WILxAX7x2fUBcqpGtzWqOnHNhPyl23UWrkT1ua1X8p3UIfAe5JZE7zUP7DrItQj1i2YVk2ZuhFyfnxbe0Px79cZkhw0DnPLZf88G5Pbx9e7JmlrFQ4nMHtoyyx0gvOV1GAsxrCNlYpJDQgBaq/IsfdIEZ4S1oYpF65SsLVABm5jxohiTFXgVc9APiv0ae05IbGyzcEpPSZLN+XKfllMkAzsfeAr4VXHSZvhbWXTWCcx26fd8+E/NrydcizLxreVvFsJuZScmo/9tDzttGGK743ghEU9lT8IZTiwrwWBVyyfRvnJlXqdtXXXY500VTXsX6seeEAdm4g/2BV/qbPyliI8shZyNNxhGfS4YsikOsR28lAVE7S0P7a1eTJp5ER0BmUCLCYl1m8vrL9hpuGECK8CNvExABf0cOIb YuKVmbj5 Js89Dnna+EkrVyjbMP+ycR/CsjEwHZc1CRT52rOH+1nE/MUWFaeoGDe0FsZL7xk1hef5wY5Z6GG/VJcPOpk/l3vhZRgJ73+Sqw4qrZ3m7ai41uuP2IEbLD2dZRnGdru+RRDVtOQ6ovdd+gxtDXae+Iy4VJC9W8Dn/n+a9lUGD2pu/UDQYun2tVJZ8Tlrm+31o/qltmryjFmYFanyb+q6HLFiEPg2RF9AiYcpTxwiyhsdpgkVBJ7bzexfERekCR8tbNN/kizy2r/CGxYNmqeOOYbKJ941DMLXLpJMKSoyyfocL4OnwHlxQy2cgjg== 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: make DAMON debugfs interface deprecation unignorable
|
expand
|
diff --git a/mm/damon/dbgfs.c b/mm/damon/dbgfs.c index fbc0cd63f34c..f7abbc0633aa 100644 --- a/mm/damon/dbgfs.c +++ b/mm/damon/dbgfs.c @@ -1091,7 +1091,7 @@ static int __init __damon_dbgfs_init(void) { struct dentry *dbgfs_root; const char * const file_names[] = {"mk_contexts", "rm_contexts", - "monitor_on", "DEPRECATED"}; + "monitor_on_DEPRECATED", "DEPRECATED"}; const struct file_operations *fops[] = {&mk_contexts_fops, &rm_contexts_fops, &monitor_on_fops, &deprecated_fops}; int i;
Kernel builders could silently enable CONFIG_DAMON_DBGFS_DEPRECATED. Users who manually check the files under the DAMON debugfs directory could notice the deprecation owing to the 'DEPRECATED' DAMON debugfs file, but there could be users who doesn't manually check the files. Make the deprecation cannot be ignored in the case by renaming 'monitor_on' file, which is essential for real use of DAMON on runtime, to 'monitor_on_DEPRECATED'. Still users who control DAMON via only user-space tool could ignore the deprecation, but that's what the tool developers should take care of. DAMON user-space tool, damo, has also made a change[1] for the purpose. [1] commit 935dae76f2aee ("_damon_args: Rename --damon_interface to --damon_interface_DEPRECATED") of https://github.com/awslabs/damo Signed-off-by: SeongJae Park <sj@kernel.org> --- mm/damon/dbgfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)