Message ID | 20221227122714.161224-7-wangkefeng.wang@huawei.com (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 C1A2EC4167B for <linux-mm@archiver.kernel.org>; Tue, 27 Dec 2022 12:11:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9B11D8E000A; Tue, 27 Dec 2022 07:11:41 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 936E18E0006; Tue, 27 Dec 2022 07:11:41 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6506F8E000A; Tue, 27 Dec 2022 07:11:41 -0500 (EST) 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 5027E8E0006 for <linux-mm@kvack.org>; Tue, 27 Dec 2022 07:11:41 -0500 (EST) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 195E0120B64 for <linux-mm@kvack.org>; Tue, 27 Dec 2022 12:11:41 +0000 (UTC) X-FDA: 80287972002.11.1F4C307 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by imf28.hostedemail.com (Postfix) with ESMTP id E45C1C000A for <linux-mm@kvack.org>; Tue, 27 Dec 2022 12:11:38 +0000 (UTC) Authentication-Results: imf28.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf28.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1672143099; 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; bh=SRYm3oBZTHbr/0gRDa1SyKolajHIbe9xvVjo3qwbJPM=; b=MVlmERycN091rHxIx7KPXqQsqlb1ZVr4MUULFW+l3SBpyUNLUBnJDo6S0G7J62QfErzOw1 0uYEDBQbY67Qy84xmpRc4Z56MBZKwXDU65ZG2bB0WBdUNMSmhleKh+lvOGRm6NAl9Osym7 8V+QN9JZgPc2NbAD97uUGOrV4O5Ndoo= ARC-Authentication-Results: i=1; imf28.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf28.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.188 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1672143099; a=rsa-sha256; cv=none; b=x6WTd41YhkW46jHnBoTVgZ3mADJY374n1MR7n1X5+JBj46UmvcBBLgXH2aupUz3Nypv1dz jJgyOOE0pyDAvAy63ll3zBwRq1WZKNttFp44DjIdU2Rz7gsvMnebtNX7T0QCtfzGpFesnV BICdGtbvojR4RVt1cR/kszRpNLdDQyA= Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4NhD4k1BQbzJqfG; Tue, 27 Dec 2022 20:10:30 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 27 Dec 2022 20:11:35 +0800 From: Kefeng Wang <wangkefeng.wang@huawei.com> To: Andrew Morton <akpm@linux-foundation.org>, SeongJae Park <sj@kernel.org> CC: <damon@lists.linux.dev>, <linux-mm@kvack.org>, <vishal.moola@gmail.com>, <willy@infradead.org>, <david@redhat.com>, Kefeng Wang <wangkefeng.wang@huawei.com> Subject: [PATCH -next v2 6/7] mm: damon: remove unneed damon_get_page() Date: Tue, 27 Dec 2022 20:27:13 +0800 Message-ID: <20221227122714.161224-7-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20221227122714.161224-1-wangkefeng.wang@huawei.com> References: <20221227122714.161224-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: E45C1C000A X-Stat-Signature: mdy1rw8d4ty7fhy6pr9ios1up8fsxmpq X-Rspam-User: X-Rspamd-Server: rspam08 X-HE-Tag: 1672143098-411060 X-HE-Meta: U2FsdGVkX1/EAu5BWXoRLhgddgcbBF3ABqG6Aiw5/ymssP/GCZA9KUQqlT40CNrxWqckI81mvKO1KKmcrMRxZuvG7FLMn4rGL8kOmYd3Xs5vPoNlASC4fvQYDOeJtwhUH1MfRAt1Ugg8xh7gaX4YaBEc+e1WdLiQ79026yoXQPZRJ5zPNtu7KctRUX4sLZ7STRc8N6qkXxSClzhtQ8ykf/TOh6KTepWTlj3cKhXmVik7mlcqJ3bsJ+93MNtP1SeDE7OLFhRjxxsbc7ELrlkvTA8UcbFYFr778Ge9ZBtV5QEuTGRh4hPSvL5udBssFuD3Ft9QCqYusJnOVeNNgYRIRQcHXuHQDOkG2e6qvZB2SxBbdwppK7WBlwKSPaQXpaQJPfEALbwh7GZBmOmxIyD24NDKTsBKHOeUVb+8WKf38GwRd49svnwzrb3fjk5IuLjiGPotUYFA/KSV2LFXiUnplFk7Vh+FQ0xxbHAxiMvzMP8WpHpwp6jrnsen9fyo+xmoF/EAyOnhrbswomgyR5TlzMfYcP1kE5LX8IA5AeobQNQ3yLATDNYOHWjDJiV8h/DbtnhQqZ/oxXbq+36TMaFzBu9wk66OOPLTquplpqP4R0tyzgZARQf4L3QcCnt1Axf2z1TQujmiy7K9j7kqiLqDuTU0QkTIowyb5Y8a8klzhjve2j/1EtTQ8rTk0OD/FwlUt1kmj12w8LbOdhx+YG5cIEFUJmBXicsigRDn5ktOiYfndOJNb2BpuylHMT4iggj02/O34d+tUc5N8VENRhQNVdbaQewyWaryKwXP2XM14Kt2RtYFmeCDEIDGeoqr+TMbF1zbbZTBh8IdEPwB6xEeshSTMG5NeJP9ebIwHf3ISIYrmD+yDmIBnBsDsqZse4Sn2KksLFoYoUK/nftAliDqV1nwkYzr6Bntt/KkbznIClfJtWS50ABm6lf38dRrTnTAZgnY0Dl8UCqXc6WYRI7 11q1qoaV kU5PU45MJnX1fbz4= 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: convert page_idle/damon to use folios
|
expand
|
diff --git a/mm/damon/ops-common.h b/mm/damon/ops-common.h index 4ee607813981..14f4bc69f29b 100644 --- a/mm/damon/ops-common.h +++ b/mm/damon/ops-common.h @@ -8,12 +8,6 @@ #include <linux/damon.h> struct folio *damon_get_folio(unsigned long pfn); -static inline struct page *damon_get_page(unsigned long pfn) -{ - struct folio *folio = damon_get_folio(pfn); - - return &folio->page; -} void damon_ptep_mkold(pte_t *pte, struct mm_struct *mm, unsigned long addr); void damon_pmdp_mkold(pmd_t *pmd, struct mm_struct *mm, unsigned long addr);
After all damon_get_page() callers are converted to damon_get_folio(), remove unneed wrapper damon_get_page(). Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> --- mm/damon/ops-common.h | 6 ------ 1 file changed, 6 deletions(-)