Message ID | 20221230070849.63358-8-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 E3858C3DA7C for <linux-mm@archiver.kernel.org>; Fri, 30 Dec 2022 06:53:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8088D8E000A; Fri, 30 Dec 2022 01:53:12 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 7B7B88E0006; Fri, 30 Dec 2022 01:53:12 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 680E48E000A; Fri, 30 Dec 2022 01:53:12 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 54EF98E0006 for <linux-mm@kvack.org>; Fri, 30 Dec 2022 01:53:12 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 375A0C050B for <linux-mm@kvack.org>; Fri, 30 Dec 2022 06:53:12 +0000 (UTC) X-FDA: 80298055824.09.2EDC6FD Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf12.hostedemail.com (Postfix) with ESMTP id B99494000B for <linux-mm@kvack.org>; Fri, 30 Dec 2022 06:53:09 +0000 (UTC) Authentication-Results: imf12.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf12.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=wangkefeng.wang@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1672383190; a=rsa-sha256; cv=none; b=e374u9DMQY3lOKLN4V7+ltyUBlHEC6V3GL7z0hcC46OcFXSE/b8Cuqav8B7mndq8l4KCa4 sNeQO6Suj95GDQ9gky54gaQR/PpJormEq47Ld3j+8fF1q57pTaSQzfXak9CqO2/0pgSG2S S+mSgAdWCLyZ1pOM/6T2cc/6IyDUFRc= ARC-Authentication-Results: i=1; imf12.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf12.hostedemail.com: domain of wangkefeng.wang@huawei.com designates 45.249.212.187 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=1672383190; 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=eMvCCThmAD1ZsyZ6nk+cqAKGcql/5AGf5w8MayiyGY8=; b=yz/92JOMlLBkPjwQcXWlaQYW1u7eJVugyaZisyP6m3POB9mrK/X02jwWPU49wgOeEOq40n CrBg/w9LvagUSITkKi2SYB7PJvXVIh/zEMeOGe96xC6jF3e2THn+Wj74sJ/ZePKKYtqe7b Of++ROThfaB1XaI3bUsCa4HDP0uzP9I= Received: from dggpemm500001.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Njwnr00xQzqTJV; Fri, 30 Dec 2022 14:48:31 +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; Fri, 30 Dec 2022 14:53:05 +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 v4 7/8] mm/damon: remove unneeded damon_get_page() Date: Fri, 30 Dec 2022 15:08:48 +0800 Message-ID: <20221230070849.63358-8-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20221230070849.63358-1-wangkefeng.wang@huawei.com> References: <20221230070849.63358-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: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Rspam-User: X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: B99494000B X-Stat-Signature: ujrz87r7h1fkec1oodugko4fiux9e5i7 X-HE-Tag: 1672383189-439682 X-HE-Meta: U2FsdGVkX1+Zthm48e47SNq+MH3ljrw2HGJrAjBK/VK6OTf8H9yiMmXAtUWPbTMR08Nm03ZDREJSXBGDnbCDT4InCWmS+Su+p6+h5BALsfHOEd2mFaheRAepAOFAhXakNJs8GOLXMj7dEnQFQ/Ztd0EFIoGVgeNexFbMBSzNCZwrqNunH5uEfEzWt9S0If0x2XOKLQC7pLa7UHPu9AiX1X+lkcLZ/anzy10Q9emN/rnsOgFZ6+jDtVjc/YDubZvknuhJPEHgpRS1T0dQuXGUvZLasxLJwqqXEvH12tfj0+ydoJ5W53g7pi/DKaE+QUYVoUR9eiMQe1Izwc3f5k2kXGdTpozsPx6oT0Hh7Sc0HrCdHxYzlG4Il6x6wmNLO0rHYaOzgFdBLdXLu3GgLFrLvV8PhxKF1tX/CK9soNKZ8wJLN9TPi6Rz7R+yVjZX4xUR2WgLvosnCbV/XCGcNcV59+JDWc4CvC7mNDhsePVMctL3r+J/tUwUkFRGC3yaPbjAx1VY1+IRnv3qjNNZt86KpKwnDTC41MhfyXxe7PLjPUlK/zfmKcSl9FFW1M8KwbXpKU/PnyoIC5J1sd6z+vzo3Rc404e0eMQwEPbJTXgUM6RqynJEkYv0Z7biPYA4bN30dnZ7qktUhMwO7iJaFPMO/XbyHTTngqvMjoi1gkf66eQEF3f6/oxVGdovJEG7ycwfbrnk+Dn2cHACNOpOQHL7ZvyY0ZlcqiEtel2vEIkLXmBIia6i3EX/MasuP3SZ6LysuDvWy2w1cYlrB30pueKsG9OiKGY0ZGR+zUE8SKcVyQpOErUArOQr3aMgIvB7sZ6HOEJd8A8jZRMlPHNZndpfUp/ok2gn5M9Uson7MV2ZnbEAVzcjvXaHzMEAj1wspFVQaOFRT7+cBw+YsT6AmXI8QGfx5SnwQJBU49SQwVq2VNrkmGw55C6OGkFaYuNw2ffe/9cLC7B5uPgnkJ2zIMj oeVccdTP TXNuxtKzw7RXWC+Y= 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 65f290f0a9d6..14f4bc69f29b 100644 --- a/mm/damon/ops-common.h +++ b/mm/damon/ops-common.h @@ -8,13 +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); - - /* when folio is NULL, return &(0->page) mean return NULL */ - 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);