Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp1561401rdb; Wed, 16 Aug 2023 15:39:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IElFm0rHOLOUEPF6PfdOhx2lSwdZE97xdR6yfjDVCxEmHplCGwUwcnmsABtFdDSubPsSK8D X-Received: by 2002:a17:906:8454:b0:987:5761:2868 with SMTP id e20-20020a170906845400b0098757612868mr2131428ejy.11.1692225545451; Wed, 16 Aug 2023 15:39:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692225545; cv=none; d=google.com; s=arc-20160816; b=Jv5oUBwwrVyvFAI5/GgfeOnmoNg6vZL3QO0Qc9E0ThjnBBamPElbbCDwJDBUo7DKy9 dhRO6u3BwRHm/us+5GnyHp7zk8GNihDdqFbgdYf+qMY1MzqoR84GRJ4n9xN9We34rt4L ijHIuBXKwOVw/IMcvGqziyDwbxQxPYj5F2dPyjszQfxkOZF5gXwpiYOi8YudFTgnVvPz z2Lv5BOg3KOD/MR/bnKJLXYBAbbD87FWIyKpB65TONHsSUrWH/vM5BdHz9/Li2w4QVbw xyGvD/MY3dblCKBuR+QsLdndDj6MEZ8NFJG1Rkg51W6d2btUarKIqfm+ArZ3Lg10kLFg TT8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=uBmn5bY96EnmwKJFlv+WltFrhGvpjIbZEKIiYirKvRY=; fh=QoHZcZSFeFPsHUAzB8k5sA+ntijlE/0/vTSJJ5Ezw4A=; b=IoswbiXQCBBMY/J334iYwxVHX8BkjbdUN7/N6MoMFND6ZmVzEaK1ibQ32MUxXe6JQZ DQYgvZ1xLeJTFMwGuo2bSUPJqi+O/1EIkOqi+KKeVrQq1wrWjD2ftw/YZK4y9SdFRjut 7UW8kdLkbqbWnprEQxY3+byCMVblnLg2BRkPz8W7+MI6wbuJhCgeco+I6UOtqWb3/44h zQcX7q9pJK+VmPJ2lEct/jF0zJKgh4/PsN6CTu0ONDqw9L36vlJzRkD8tUTjWtMh6Zkt 6GyrqkAobpsvQZq6UoE8jeb3HyUCQrkGU56Uq/HYDdPqjDbsBOuN/0jeVWGu0VhvEYos YLUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=vz0KHcPQ; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y19-20020a170906915300b0099307a6635esi11469709ejw.701.2023.08.16.15.38.35; Wed, 16 Aug 2023 15:39:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=@linux.dev header.s=key1 header.b=vz0KHcPQ; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235679AbjHOIhR (ORCPT + 99 others); Tue, 15 Aug 2023 04:37:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235692AbjHOIhO (ORCPT ); Tue, 15 Aug 2023 04:37:14 -0400 Received: from out-56.mta0.migadu.com (out-56.mta0.migadu.com [IPv6:2001:41d0:1004:224b::38]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60D421999 for ; Tue, 15 Aug 2023 01:37:08 -0700 (PDT) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1692088626; h=from:from: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=uBmn5bY96EnmwKJFlv+WltFrhGvpjIbZEKIiYirKvRY=; b=vz0KHcPQmyiJWfmlN0KqRtShPV8OO94S7Ve+8NAyKaJzlfD3l3Gwdcs50vzwkyJwFeNk42 wWmdUe83i5yu+zc+P73iwMyGZC6f36VMufdeZyZpMS2xcjecgpOeJWBucmjek3/RmzHbqM Esg+z/IvqlGN9dYsqiRnMi0+1ICkj/k= MIME-Version: 1.0 Subject: Re: [PATCH v4 01/48] mm: move some shrinker-related function declarations to mm/internal.h X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20230807110936.21819-2-zhengqi.arch@bytedance.com> Date: Tue, 15 Aug 2023 16:36:31 +0800 Cc: Andrew Morton , david@fromorbit.com, tkhai@ya.ru, Vlastimil Babka , Roman Gushchin , djwong@kernel.org, Christian Brauner , "Paul E. McKenney" , tytso@mit.edu, steven.price@arm.com, cel@kernel.org, Sergey Senozhatsky , yujie.liu@intel.com, Greg KH , simon.horman@corigine.com, dlemoal@kernel.org, LKML , Linux-MM , x86@kernel.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org, linux-erofs@lists.ozlabs.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, linux-nfs@vger.kernel.org, linux-mtd@lists.infradead.org, rcu@vger.kernel.org, netdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, dm-devel@redhat.com, linux-raid@vger.kernel.org, linux-bcache@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-btrfs@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20230807110936.21819-1-zhengqi.arch@bytedance.com> <20230807110936.21819-2-zhengqi.arch@bytedance.com> To: Qi Zheng X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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-ext4@vger.kernel.org > On Aug 7, 2023, at 19:08, Qi Zheng wrote: >=20 > The following functions are only used inside the mm subsystem, so it's > better to move their declarations to the mm/internal.h file. >=20 > 1. shrinker_debugfs_add() > 2. shrinker_debugfs_detach() > 3. shrinker_debugfs_remove() >=20 > Signed-off-by: Qi Zheng Reviewed-by: Muchun Song One nit bellow. [...] > + > +/* > + * shrinker related functions > + */ This is a multi-comment format. "/* shrinker related functions. */" is the right one-line format of comment. > + > +#ifdef CONFIG_SHRINKER_DEBUG > +extern int shrinker_debugfs_add(struct shrinker *shrinker); > +extern struct dentry *shrinker_debugfs_detach(struct shrinker = *shrinker, > + int *debugfs_id); > +extern void shrinker_debugfs_remove(struct dentry *debugfs_entry, > + int debugfs_id); > +#else /* CONFIG_SHRINKER_DEBUG */ > +static inline int shrinker_debugfs_add(struct shrinker *shrinker) > +{ > + return 0; > +} > +static inline struct dentry *shrinker_debugfs_detach(struct shrinker = *shrinker, > + int *debugfs_id) > +{ > + *debugfs_id =3D -1; > + return NULL; > +} > +static inline void shrinker_debugfs_remove(struct dentry = *debugfs_entry, > + int debugfs_id) > +{ > +} > +#endif /* CONFIG_SHRINKER_DEBUG */ > + > #endif /* __MM_INTERNAL_H */ > --=20 > 2.30.2 >=20