From patchwork Mon Jun 6 18:23:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 12870788 Return-Path: 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 616CDC43334 for ; Mon, 6 Jun 2022 19:25:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 035766B0072; Mon, 6 Jun 2022 15:25:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id F27236B0073; Mon, 6 Jun 2022 15:25:36 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DED836B0074; Mon, 6 Jun 2022 15:25:36 -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 CF2B06B0072 for ; Mon, 6 Jun 2022 15:25:36 -0400 (EDT) Received: from smtpin15.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 4A181BE9 for ; Mon, 6 Jun 2022 18:48:42 +0000 (UTC) X-FDA: 79548697284.15.98D79C1 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf12.hostedemail.com (Postfix) with ESMTP id A96E940080 for ; Mon, 6 Jun 2022 18:47:54 +0000 (UTC) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E4CCF61311; Mon, 6 Jun 2022 18:23:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C15C3C385A9; Mon, 6 Jun 2022 18:23:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654539796; bh=+QqAprUxOaQPSOtLP0LgBQYVTXKMbC246G9bHpmyd0Y=; h=From:To:Cc:Subject:Date:From; b=gs75g9nmBP5Dow05xpuWiCuO/NgJjCt9gShkU29XnHSJeHDrv5fuK7SmlPmJbH/j/ lhbg7TRElq9liJuX1WAqBxjesskhTNSy+t4VKbFPUB2a0Ixl+SMnjWQIBcIio+OO4v S+r4VzUUSY/XXBUy5UKJFRClt0B1DhUqY/Spd0JX3zpGQkRbCPJSldtYrdA6DFNIoO gSNHOnBjTaq6TscYJSjr4X56VvtqPc1d8nKSQLqrkQDMYjwKRbWdfFVVkZcArpNm1W N9fWhzwDHGlxwc5WKIJybAc0YHTB5t1KjBx995LdfkPqumeo2BOekuVQy0yenf7ICF rhWxxTnKAMuTQ== From: SeongJae Park To: akpm@linux-foundation.org Cc: corbet@lwn.net, damon@lists.linux.dev, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH 0/6] mm/damon: trivial cleanups Date: Mon, 6 Jun 2022 18:23:04 +0000 Message-Id: <20220606182310.48781-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: A96E940080 X-Stat-Signature: iuo36kobpuwt4yj6ex7k4ccfzuff6zwj X-Rspam-User: Authentication-Results: imf12.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=gs75g9nm; spf=pass (imf12.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 X-HE-Tag: 1654541274-362395 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: This patchset contains trivial cleansups for DAMON code. SeongJae Park (6): Docs/admin-guide/damon/reclaim: remove a paragraph that been obsolete due to online tuning support mm/damon/{dbgfs,sysfs}: move target_has_pid() from dbgfs to damon.h mm/damon/reclaim: deduplicate 'commit_inputs' handling mm/damon/sysfs: deduplicate inputs applying mm/damon/reclaim: make 'enabled' checking timer simpler mm/damon/reclaim: add 'damon_reclaim_' prefix to 'enabled_store()' .../admin-guide/mm/damon/reclaim.rst | 6 -- include/linux/damon.h | 6 ++ mm/damon/dbgfs.c | 15 ++--- mm/damon/reclaim.c | 40 +++++------ mm/damon/sysfs.c | 67 ++++++++----------- 5 files changed, 55 insertions(+), 79 deletions(-)