From patchwork Tue Jan 10 19:03:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 41591 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2919549wrt; Tue, 10 Jan 2023 11:04:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXs6gh/BdHUrB5G6UD+En5rmseiF3lSHb8a9t5d0nwdRKC9X1iHo7ddejXjvKeSNkZry6HJA X-Received: by 2002:a17:902:7c89:b0:188:59e2:5f91 with SMTP id y9-20020a1709027c8900b0018859e25f91mr67348579pll.59.1673377497798; Tue, 10 Jan 2023 11:04:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673377497; cv=none; d=google.com; s=arc-20160816; b=QyXNM0Fykrn8oBf4u4XcOkphRIvXnkTCcLB6OZFLyhHITgKGgKzGqAKSyDHCH7LR4M krd5wJaGuuFyGXOCJLNOmv1DrBC/u8L7evzi5JdvKPQepQqfcztf1DHQPtA13ns9JZJt Nd6pzf7s2U2y9d9BVTwly5CcC2kQgovGKGbsbIHPe0GNu+H6DnfLKt0l22r0VaMGdBio ZdAn49XpCVSCKWCxrLfh6u0drO5NvqFYJ8wTctPmKM7eLt8prhyASacatJHRUvr1iniU lAZI43beE7jrtyxOkEYgEZcP4h2A5UF1pRBoKag4ycYS++4KklqAI+2ivduXwVouFaQU EpVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3DVEy/H+g5xxOxDaNlg5cWLZhq40eZdLgDfmf+UPHks=; b=eeMGhKBCuuG3Ep7hwrvLTVAp1/s015LR82wkAGQj0D9RfpNqVloynm8rNOE2yQjjkT NiuIMFiClyJw24SbCthO5kQUqqaU3mtH3Q2IE6lg0tSan0+zAGNRkYL92GeSPCQ2NN+I wOPExKe7EYsGeqt4RA6JwIk9GhtDlbjxlvoIKYVqYcccScNjws6dV/bwoIQWNliPlfqW 1f1c9jiwTZBr0VuqJFVVBmCd9u7exJcyxsU+E4HQzGXDk5+zmMeuMCaIYMnuWpIGDlIK JuMjPPJF55UfEma6luR3yaFRl0oLEF4tlfHEQW9EELWLGPfLrdAO1EnhoZpi3vWWgxhs RAXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fCl8S7Yi; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y1-20020a17090322c100b00192c9303df2si12716015plg.133.2023.01.10.11.04.45; Tue, 10 Jan 2023 11:04:57 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=fCl8S7Yi; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239674AbjAJTEN (ORCPT + 99 others); Tue, 10 Jan 2023 14:04:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239485AbjAJTEI (ORCPT ); Tue, 10 Jan 2023 14:04:08 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A90196418 for ; Tue, 10 Jan 2023 11:04:07 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 5335CB8196F for ; Tue, 10 Jan 2023 19:04:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB108C433D2; Tue, 10 Jan 2023 19:04:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673377445; bh=EpuEVUL614S47vXoslv07ySnDH61IdNVsBrU1EkLty8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fCl8S7YiAsYSjVYQ6JjpL33E5Zdyh0Drih0OrdQyMBev/agRdKUdaHNWOrGbsRJsk CUm9xv0Q1qyvDy/JbGUNQAH4T2SCwyC0lwrr3By+XE5/gPxPZUEJTGvN8p9MNiYoUH fJNRL+cOlBex8DtmAvlIcioI4YLkXREUsKisYvBQRXNjsHzh6JIaPkyi0DG+RCkTkY BEggkVrMC5MbN75tGE5AjEaBQqvdq+bYZEszEMZhwLR2sFFK/im+NdyEMMbLFCwESC lsHWX7EzszK4qUGrr0DNzX1R9gXbytMa+c88X9+QFYpxaCrUt9mwFUlVLDKC/1LoiL p5PeAAxRCMc9g== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , damon@lists.linux.dev, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/8] mm/damon/core: update kernel-doc comments for DAMOS action supports of each DAMON operations set Date: Tue, 10 Jan 2023 19:03:53 +0000 Message-Id: <20230110190400.119388-2-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110190400.119388-1-sj@kernel.org> References: <20230110190400.119388-1-sj@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754663483393671474?= X-GMAIL-MSGID: =?utf-8?q?1754663483393671474?= Supports of each DAMOS action are up to DAMON operations set implementation in use, but not well mentioned on the kernel-doc comments. Add the comment. Signed-off-by: SeongJae Park --- include/linux/damon.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/damon.h b/include/linux/damon.h index 7907918ad2e0..3fa96d7c9fe4 100644 --- a/include/linux/damon.h +++ b/include/linux/damon.h @@ -91,6 +91,12 @@ struct damon_target { * @DAMOS_LRU_DEPRIO: Deprioritize the region on its LRU lists. * @DAMOS_STAT: Do nothing but count the stat. * @NR_DAMOS_ACTIONS: Total number of DAMOS actions + * + * The support of each action is up to running &struct damon_operations. + * &enum DAMON_OPS_VADDR and &enum DAMON_OPS_FVADDR supports all actions except + * &enum DAMOS_LRU_PRIO and &enum DAMOS_LRU_DEPRIO. &enum DAMON_OPS_PADDR + * supports only &enum DAMOS_PAGEOUT, &enum DAMOS_LRU_PRIO, &enum + * DAMOS_LRU_DEPRIO, and &DAMOS_STAT. */ enum damos_action { DAMOS_WILLNEED,