Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3261164lfo; Mon, 23 May 2022 00:14:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkR6yAw38TdCrl9E203/QMAdjtKlSQ32+lwGZJDzPnguwBFNjsdqDtdyDcp+tczA+FD5lq X-Received: by 2002:a17:902:7783:b0:15f:21f8:a1d6 with SMTP id o3-20020a170902778300b0015f21f8a1d6mr21629253pll.66.1653290042778; Mon, 23 May 2022 00:14:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653290042; cv=none; d=google.com; s=arc-20160816; b=nzJbxxlloHVV4opba/pC2v+UDK7nfeUJl3aGZlBS18VQUZeIHNt1yr7DYfLrX1HufP jQFvsqcOkjvjG4C7sl1XCUXbPiU0hpa+e+dh+y1h4FQSFjtwRso6zkvcNMf4JM41b8B/ IVgsxBNvVnPRgAFoyaeiqathdMhFLiLE9og8bwvG0G2fvtF6kHCC0j6cHakPubVq+pTh e9AqNnZM+BVcjZKp9Oalqajj0oBmKc8L8jNJy/ubDKHXYqA9fUYFTx8HWxAHitxp/8Gx FtAB70b1UoUwvj5aTlQs9qbrmTrJMF6Y77ozUCE2vbkYcxh+4WtdggbhF9Kledn0xsKj Ciog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=/PvswcI13Yf4q0l94RXQB7xvET7jRmzJANLdVyC6U+A=; b=Y6Py0oEK0DEoRloH2zxNhDiovJ3YaL3BXrWcQfn8uh1z5lZfojoDUj+o20V0mHRbjl nSErqHLBHxum0ZYcu31cHFvdrbL91F1yNu56GnBp59PeddXNDEoPtPE0R+7Or1lyccir UpVb50GHIldrjNSDaS2/HMxwOAAKUoFkXv6jrsSsrlGfJ/obH4y2QeVY9M2b8Ounwec2 LjiwrcgTKuXGTowm4e56JdiFm4nai7MqaNB0eHRDcj6k/87ikZ9JwNMtBz9h1J/80ZS5 nVngfpReVDfLoMkzjv4a/fg6I9Fu5VDf7RItaND7CDXHuupSKy3sCqAGpaY9X0AGkmSZ 4G5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=BZxSssMM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t28-20020a63461c000000b003f27e1916bbsi9903747pga.162.2022.05.23.00.14.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 00:14:02 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=BZxSssMM; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 803B34665E; Sun, 22 May 2022 23:32:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354222AbiEUAbx (ORCPT + 99 others); Fri, 20 May 2022 20:31:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231552AbiEUAbv (ORCPT ); Fri, 20 May 2022 20:31:51 -0400 Received: from out1.migadu.com (out1.migadu.com [91.121.223.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DCE91966A0 for ; Fri, 20 May 2022 17:31:50 -0700 (PDT) Date: Fri, 20 May 2022 17:31:43 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1653093108; 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: in-reply-to:in-reply-to:references:references; bh=/PvswcI13Yf4q0l94RXQB7xvET7jRmzJANLdVyC6U+A=; b=BZxSssMM56O+65UCUfQpz9fJkEhid3CADJGmnG88vw0ZXU6GVY5FCSTCnUZRxyQSJ9nhcC 1kJLsZoU+x8BW/bPXcJo/CH4BMxdIIwFlZSOvK3zy/VshPgDCFgrVFx56VW9IGkMdBxAFS bEXLmD1vJthOX2YMbMW5txVXPs06K1s= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Roman Gushchin To: Kent Overstreet Cc: Andrew Morton , linux-mm@kvack.org, Dave Chinner , linux-kernel@vger.kernel.org, Hillf Danton , Christophe JAILLET Subject: Re: [PATCH v3 3/6] mm: shrinkers: provide shrinkers with names Message-ID: References: <20220509183820.573666-1-roman.gushchin@linux.dev> <20220509183820.573666-4-roman.gushchin@linux.dev> <20220520164115.oectf3x5hkwesioi@moria.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220520164115.oectf3x5hkwesioi@moria.home.lan> X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: linux.dev X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Fri, May 20, 2022 at 12:41:15PM -0400, Kent Overstreet wrote: > On Mon, May 09, 2022 at 11:38:17AM -0700, Roman Gushchin wrote: > > diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c > > index ad9f16689419..c1f734ab86b3 100644 > > --- a/drivers/md/bcache/btree.c > > +++ b/drivers/md/bcache/btree.c > > @@ -812,7 +812,7 @@ int bch_btree_cache_alloc(struct cache_set *c) > > c->shrink.seeks = 4; > > c->shrink.batch = c->btree_pages * 2; > > > > - if (register_shrinker(&c->shrink)) > > + if (register_shrinker(&c->shrink, "btree")) > > pr_warn("bcache: %s: could not register shrinker\n", > > __func__); > > These drivers need better names for their shrinkers - there will often be > multiple instances in use on a system and we need to distinguish. > > Also, "btree" isn't a good name for the bcache shrinker - "bcache-%pU", > c->set_uuid would be a good name for bcache's shrinker, it'll match up with the > cache set directory in /sys/fs/bcache/. Sure, will improve in the next version. Thanks! > > For others (device mapper, md, etc.) there should be a minor device number you > can reference. Good point, will think of it. Thank you for taking a look!