From mboxrd@z Thu Jan 1 00:00:00 1970 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 0EE94ECAAD8 for ; Wed, 14 Sep 2022 07:09:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8624F6B0071; Wed, 14 Sep 2022 03:09:45 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8117D8D0002; Wed, 14 Sep 2022 03:09:45 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6D9858D0001; Wed, 14 Sep 2022 03:09:45 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 5F69B6B0071 for ; Wed, 14 Sep 2022 03:09:45 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 3859780962 for ; Wed, 14 Sep 2022 07:09:45 +0000 (UTC) X-FDA: 79909815930.02.D420957 Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by imf13.hostedemail.com (Postfix) with ESMTP id B44532009E for ; Wed, 14 Sep 2022 07:09:43 +0000 (UTC) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1663139382; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=SVX6wYCHr1Muv7U0ni5Gzy2veBGOaOy55vMQEkKeVcQ=; b=Uld1IRw7cd2UeCsv9VvNSYSOIwpWe6WMbNLFPrY9Jm3N/ueWiCELRf6BnRNL/+AT8xkzvK pvrT2q2C5VNEpByBOm6RPh815qDwHDO5OB7/ETDNXA6U4CvmliwBCHQ0zDPly8ibYVmrQ/ 2I9NW4SdJhl2vKELRqBR/VrIe5qDtlI= MIME-Version: 1.0 Subject: Re: [PATCH] mm/damon/sysfs: use the wrapper directly to check if the kdamond is running X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <1662995513-24489-1-git-send-email-kaixuxia@tencent.com> Date: Wed, 14 Sep 2022 15:09:38 +0800 Cc: sj@kernel.org, Andrew Morton , damon@lists.linux.dev, Linux MM , linux-kernel@vger.kernel.org, Kaixu Xia Content-Transfer-Encoding: 7bit Message-Id: References: <1662995513-24489-1-git-send-email-kaixuxia@tencent.com> To: xiakaixu1987@gmail.com X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663139383; a=rsa-sha256; cv=none; b=7l/7cGdFBEiQlybr6kXwVOeriYF6OJKojga+LLwQ06AS80B6BuwOUfz+al53hIojlw3TDi Au4vrHJfeGh/UbRqSaQAITGX7Cyz4Ne+GmEQtYvuVEoJOnBAj0dvBhNW2isqGdaqBOtC8T gS9uFsGFyQbFVtjEG+SqzPOONOSdD0Y= ARC-Authentication-Results: i=1; imf13.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=Uld1IRw7; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf13.hostedemail.com: domain of muchun.song@linux.dev designates 91.121.223.63 as permitted sender) smtp.mailfrom=muchun.song@linux.dev ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663139383; 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-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=SVX6wYCHr1Muv7U0ni5Gzy2veBGOaOy55vMQEkKeVcQ=; b=Ez6jzVyImawBI8P0mOb5EYa9rDVqRGB2fBMfpNO13KKx78JTwBDT+4sKgV8CDD0E6YFdnl dOj7WCRt0xPc7m4STM0zIdpIDP6jidk7ln/B5JtDqdSf5aGY7KT1EvJxehCWGxN5rKaVNN 5n7sxgpyS0H078l8Mt9/xSQQdg5NI58= X-Stat-Signature: nmysywhzrt3ggw91ipdc74wzk57kahim X-Rspamd-Queue-Id: B44532009E X-Rspamd-Server: rspam03 X-Rspam-User: Authentication-Results: imf13.hostedemail.com; dkim=pass header.d=linux.dev header.s=key1 header.b=Uld1IRw7; dmarc=pass (policy=none) header.from=linux.dev; spf=pass (imf13.hostedemail.com: domain of muchun.song@linux.dev designates 91.121.223.63 as permitted sender) smtp.mailfrom=muchun.song@linux.dev X-HE-Tag: 1663139383-200597 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: > On Sep 12, 2022, at 23:11, xiakaixu1987@gmail.com wrote: > > From: Kaixu Xia > > We can use the 'damon_sysfs_kdamond_running()' wrapper directly to > check if the kdamond is running in 'damon_sysfs_turn_damon_on()'. > > Signed-off-by: Kaixu Xia Reviewed-by: Muchun Song Thanks.