Message ID | 20220913174449.50645-2-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 EBC1DECAAD8 for <linux-mm@archiver.kernel.org>; Tue, 13 Sep 2022 17:44:56 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2EB946B0071; Tue, 13 Sep 2022 13:44:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 29C566B0072; Tue, 13 Sep 2022 13:44:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 164DF8D0001; Tue, 13 Sep 2022 13:44:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 0681F6B0071 for <linux-mm@kvack.org>; Tue, 13 Sep 2022 13:44:56 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id C7FD91C62FF for <linux-mm@kvack.org>; Tue, 13 Sep 2022 17:44:55 +0000 (UTC) X-FDA: 79907787750.10.CE84A61 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf15.hostedemail.com (Postfix) with ESMTP id 82BCEA0099 for <linux-mm@kvack.org>; Tue, 13 Sep 2022 17:44:55 +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 9B35861268; Tue, 13 Sep 2022 17:44:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B87CC433C1; Tue, 13 Sep 2022 17:44:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663091094; bh=A+CgN3B+g3StjvR1ecSJxFzUf8y+UUwnpB+0EtAIiO0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CaZNkoG/DVyccvLtqoqoXyvYOsHQtVbs6/wMr5ibaQ7DAm+4nezKW8iI7X+nPrA/L ZQiVPvS/2eoWgjc45bbWm9hmWeeoxRGXCrEYslIJMGLNa6nuHsgWuBSsmFfL1DfABf of72OPPFBIWP3hapXUV0alxnuRiZx3zVSIXg8XXPNpNQVW5dwTex4KEDlPQAO5Xe34 OsdNZRiLs4KjD0ofUTXPgIAI88nH4KUH8FcBu9Dw3JwbR/idcFmxqE46Qe29kkfuvQ 9j2yEPtwNm2knoIE4eAI+4gV1axPzGOMUwTDlyMrXqhHIQuMEY7occdn9bn74VZdT2 VqhFkGWzuH27g== 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 01/22] mm/damon/paddr: make supported DAMOS actions of paddr clear Date: Tue, 13 Sep 2022 17:44:28 +0000 Message-Id: <20220913174449.50645-2-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220913174449.50645-1-sj@kernel.org> References: <20220913174449.50645-1-sj@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="CaZNkoG/"; spf=pass (imf15.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=1663091095; a=rsa-sha256; cv=none; b=71WA24az4eN5PmxJMsz7kgY3xqpaEpJRNQL/U7zdu9LPseM5fHJP1PGo6vL256bZLLKb0p ea08QpGPzWOP+oBtlmjFhe3K83kBOpZ/Tyu1wWTJf68dezMSdNB+TYpmxwbUuA9oblgpc2 0FNnLoLPub8UQPmZIObZ1kMA/Cp/IMI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663091095; 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=Z+PCaQJmmQEu7LNVqPsNpIhachibvDc69DRhEEcP0xQ=; b=r7gmV8ru8hQ8n77YlUUHg2Ydz8m+FQiWyVC0jrnNXXo3qRECQqUA3cOoMGWbmg+IbwwRTg DytQg1LjHQcVlgO3DV+mU9Fa0ebD3iI/yvr4uUJEsYtiSR45crS3X28ITfBK5ysyN999A5 VjB88zNFbmvf+yEklaFGSvUBBFwqknw= X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 82BCEA0099 X-Rspam-User: Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="CaZNkoG/"; spf=pass (imf15.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-Stat-Signature: w5rn56x14r7o7ubamxkghyikf8ef7d5m X-HE-Tag: 1663091095-433403 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> |
Series |
mm/damon: cleanup code
|
expand
|
diff --git a/mm/damon/paddr.c b/mm/damon/paddr.c index f00cbe74a00e..5eba09d50855 100644 --- a/mm/damon/paddr.c +++ b/mm/damon/paddr.c @@ -274,7 +274,10 @@ static unsigned long damon_pa_apply_scheme(struct damon_ctx *ctx, return damon_pa_mark_accessed(r); case DAMOS_LRU_DEPRIO: return damon_pa_deactivate_pages(r); + case DAMOS_STAT: + break; default: + /* DAMOS actions that not yet supported by 'paddr'. */ break; } return 0;
The 'swtich-case' statement in 'damon_va_apply_scheme()' function provides a 'case' for every supported DAMOS action while all not-yet-supported DAMOS actions fall through the 'default' case, and comment it so that people can easily know which actions are supported. Its counterpart in 'paddr', 'damon_pa_apply_scheme()', however, doesn't. This commit makes the 'paddr' side function follows the pattern of 'vaddr' for better readability and consistency. Signed-off-by: SeongJae Park <sj@kernel.org> --- mm/damon/paddr.c | 3 +++ 1 file changed, 3 insertions(+)