Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp7583260rwn; Wed, 14 Sep 2022 00:40:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR4i4T5MvSYJsGkGeKGVHalbuDxf906eBAB4v0V2VRQjGheh50mJBX5Di80RplC+rHK/SCow X-Received: by 2002:a05:6402:448b:b0:43b:5ec6:8863 with SMTP id er11-20020a056402448b00b0043b5ec68863mr28984431edb.377.1663141207064; Wed, 14 Sep 2022 00:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663141207; cv=none; d=google.com; s=arc-20160816; b=eJBGdjDEeGVcaa778HvhnFr4KuaK2RWT64IGvVuk0YBPZLIJBDL5HDdShgH6ATXTgR LRD1DP9/itmTVuB3lA5AzKZuE/okaOsyfIBEI9a+nlLjhYJif5vL+QRUdPtQ+fnt5Zvy 1gDUHqCKCqzozrbBHuEgRsWmI6OLSV3ghefc7iR7/T84kSLGlVpZvY5rU+Q42uALL03a f8wZYrMnDiO1p04i1j5/bypQrpP1w/xclpU7uzLf3q+NwauY0UBaZOrHOQk7vX6snPZ7 z0OBC59UZV3ryQTixeq1LY1gAoOzdcHQYwPA1uOT+oYADeVPcVDS93MOCvinLWanm8Wi yJVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=SVX6wYCHr1Muv7U0ni5Gzy2veBGOaOy55vMQEkKeVcQ=; b=UUaYgsuqgUbJ0biiAqCCEbLOWyhn5f3b/fHhKr3+XtVSZNV9vjDD4GQoT5A0KEiy/c Ci6ioGGL+04IoLgljK4VJpyyB/SS2vQcvmZqPf4lTsFFoRNS/FM2JKpglrKbVVvMjMRT hzRVxmu7MlVHgKSxEPkqaklzEH7RoY5hd5op08vx2PSmq5FnyvO516GFINN3Zefyvps+ t8KxxcSfD5ImoN8WO4Q1Ovpas1MurmLeCUSLZp3Aa2EtxnPn/ohcKKY40FulUm2gG4Ou HNwbYCJZJ6RfIM3IpCYAiSARbTMK6ywBCor5mAxKwkQWrLfy7yHTu2cQt2obTCb3esd5 U8xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Uld1IRw7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d4-20020a50fb04000000b00450f56cd37bsi7679375edq.175.2022.09.14.00.39.34; Wed, 14 Sep 2022 00:40:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Uld1IRw7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229986AbiINHJ6 (ORCPT + 99 others); Wed, 14 Sep 2022 03:09:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230110AbiINHJx (ORCPT ); Wed, 14 Sep 2022 03:09:53 -0400 Received: from out1.migadu.com (out1.migadu.com [IPv6:2001:41d0:2:863f::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61C1E12AF5 for ; Wed, 14 Sep 2022 00:09:44 -0700 (PDT) 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 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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.