Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8884831rwb; Tue, 13 Dec 2022 11:42:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf5H5VjxsmYnt/E6/EzEziyKhESkgXnIJ84QYqnA2AeT3x/glt7soe+bsyLOuY2vaeNhrdGN X-Received: by 2002:a05:6a20:4f95:b0:a9:d019:d424 with SMTP id gh21-20020a056a204f9500b000a9d019d424mr23312678pzb.18.1670960530003; Tue, 13 Dec 2022 11:42:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670960529; cv=none; d=google.com; s=arc-20160816; b=EziYMgNNWI5PEcYGnWS9w8YWvLbvFHlrItHWR5EeIwWThc2GAS8itj6MLKa/eYQthF zrC7BqfE8eMLx2xZ57n2CxaLu7HPqGAja+ZBWyXK1lczWXk8rFs09N74maqKJG3v/pKI pJ4T/Fk0As1e0lsb1E2KqDtLmQL2Zcs14tnt/hhbGNh7lqhAEyfp+ED8c+gqJHa8ASqx h1S4Wk0hazy3C61ZNAcV3RWRlGHogvXFa7Quiz9t50FX7u7U2ztD5FpHilPhkpKhKqOw qZ0UO1SLwugo1UySA5ACaW1JWdIguwFCulI/zeKrzhkmVTFJWtj1bj5mmMR6OpJpQeo/ uNGg== 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=/emhmtqf5vLCLN56FsPqtlsgIr6R8EiE/kgUIjsp4oY=; b=jpNM6O8xwlZ3gtwkdt3B+986cS+WGA3V8eAdqBHfqGis9AA9aWpBt46H8TL4SMbva8 rGIYPtdFPBph8hz/UwZA3gpP7GLg/kliMc/FkhuDsPuAWmcXFilTESZV4PoLEIJagZNG l8h7jIv5ZxdenH8CQlKOzXb50l0Za6Jb9Fm9sQEMxc1Mx3EI22/rLAHcXwm+tQf8oP1Z +txMxuun1a08xoT1kvfCCAw75xlCpCoIhiEAiBbH4ecEAnGDL3QmdxjxXFTrLN7ATQ/t LVX/KzdfV29tNmCz0aLNJoRnXO+uI9ki4qSGLbzoLgKnluAhjsgpEEeo9Hshs/IPD5Vr ikxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uT2x8oDP; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a056a0014c400b00579f5a64843si4391334pfu.96.2022.12.13.11.42.00; Tue, 13 Dec 2022 11:42:09 -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=uT2x8oDP; 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 S236523AbiLMT0j (ORCPT + 72 others); Tue, 13 Dec 2022 14:26:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236155AbiLMT0h (ORCPT ); Tue, 13 Dec 2022 14:26:37 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B12A22531 for ; Tue, 13 Dec 2022 11:26:37 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 9B26E61598 for ; Tue, 13 Dec 2022 19:26:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B7ADC433D2; Tue, 13 Dec 2022 19:26:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670959596; bh=QK2oIpKFkW8Y+pz74LHORvAxoSG1SnUXy4S3zV/L44U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uT2x8oDPFQmOBhB06fHpXNUG8BIaSfysV1d0mSqOFUvwRfazhlQuGTCRhl/ICwcX3 atRzYdVQCI2MxWZGJ1fhvuz2tWgKyT8mgq9/hsMktCizQBril30G86ftXB/uZb8pF0 76nhXKgy3S1DoVKbelp+0TX6l9LPsW7tJwAtk6Iek7gBQ0SjSbZ3UBHB0gJpL47izZ pdTzrj9cns4eE1fHszq2m+KhynY2QYJ9/omZdazrJSvek/492QSB63e7XoGfVNWc+L ShQIINlai/aocSwdyFEL+yE/VsHVs9UD8/HtoIVHIlpH+HyTxC/Mi4ZPqmU0uKksKa i0z/sQc+VdkaA== From: SeongJae Park To: Kefeng Wang Cc: Andrew Morton , David Hildenbrand , Oscar Salvador , SeongJae Park , linux-mm@kvack.org, linux-kernel@vger.kernel.org, damon@lists.linux.dev, vishal.moola@gmail.com, willy@infradead.org Subject: Re: [PATCH -next 8/8] mm: damon: remove unneed damon_get_page() Date: Tue, 13 Dec 2022 19:26:33 +0000 Message-Id: <20221213192633.138774-1-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221213092735.187924-9-wangkefeng.wang@huawei.com> References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Hi Kefeng, On Tue, 13 Dec 2022 17:27:35 +0800 Kefeng Wang wrote: > After all damon_get_page() callers are converted to damon_get_folio(), > remove unneed wrapper damon_get_page(). > > Signed-off-by: Kefeng Wang > --- > mm/damon/ops-common.h | 7 ------- > 1 file changed, 7 deletions(-) > > diff --git a/mm/damon/ops-common.h b/mm/damon/ops-common.h > index 4ee607813981..35a2e42a27da 100644 > --- a/mm/damon/ops-common.h > +++ b/mm/damon/ops-common.h > @@ -8,13 +8,6 @@ > #include > > 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); Let's keep the one blank line before damon_ptep_mkold(). > void damon_pmdp_mkold(pmd_t *pmd, struct mm_struct *mm, unsigned long addr); > > -- > 2.35.3 Thanks, SJ