Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp229011pxv; Wed, 30 Jun 2021 04:22:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqH3Sa3Hmx9JZatIAQRZDQ8n7bkSyxDlUFY+DlJmw9IP6MTzwDtGwyMmpXEAC4RyYaWZ4U X-Received: by 2002:a02:77d1:: with SMTP id g200mr8426081jac.132.1625052149977; Wed, 30 Jun 2021 04:22:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625052149; cv=none; d=google.com; s=arc-20160816; b=Co6b5YMQhSTjOgGa614L5qekRVvXt8GOLFew8203WLBeg/a4QbLjEqAbCYctGLhN+J xjhxf5h+FrmTa7j5YuKXbHArE5TY3uDPBV2V+NWO88aRGArv9JcR5w/zuV1AmQNRMWUS KKHisem/v1iOwMmxymp2UyCP9gel2UQoPrb0ZLYh0SzsIE/oiC+v6o3ZwygjLm8bw71M aSdonnkrhuvSMe3/Jqmm3lNwxJ+UA/MMPKgTvkxWj4FIfUl0Xsg6602DxE37R1Om2rtk k8dZKR6ykfZ1udr5yQMtM5C6yorWVTD+SZeuk4x0B1LtwSHJrwWIEQDa2G7uRfh1nS/A H8lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=CXEAk0/YVoDTZj0zNXyG5NFhb3NO4Aa1DyfJDSHF32g=; b=dPCxLCbMkeVcmaLhMZ9FqDLQK/R4p7/jxqGW5pOcHTPG+a/PYgl/LezejL0HSQxWwe JqpSzpJS4SB7cCYpfVXBp66QhEAi7B1/c6qXQlOyOiCnL7mpkQigZHE27Y2tM5KqzB0F EweUXIHpNGVYu2kjBYYKBZa8x/tvHnar6lRbzevJ16V0d3G6zrScTq//WttfqQtM3ntq IVD8ykcaHvz8AI99MOGzcOc4SZV+zA76cfypi8Y+tL9xNG3livgbbkshStwGTPolplpT 0F5pC9200UCU15+rTcXN/NMIsg3xS415DEgSK6Ago8QQ9XN8Jtp9t+OjB8Fm6bUPIjV9 1XvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=TNJJqDhp; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v18si20925788ioh.67.2021.06.30.04.22.07; Wed, 30 Jun 2021 04:22:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=TNJJqDhp; dkim=neutral (no key) header.i=@suse.cz; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234255AbhF3LYX (ORCPT + 99 others); Wed, 30 Jun 2021 07:24:23 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:34662 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233706AbhF3LYX (ORCPT ); Wed, 30 Jun 2021 07:24:23 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 47BB51FE6F; Wed, 30 Jun 2021 11:21:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1625052114; h=from:from:reply-to: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=CXEAk0/YVoDTZj0zNXyG5NFhb3NO4Aa1DyfJDSHF32g=; b=TNJJqDhpKGop/7ub1h6hjG0lYLEF0p0Nnbl166gPaNtCMULoXtoUdLV9eWg4OwPCfWaWlr yw98OkrbI2ZNyKZ9MhdRJ30bzdr8/gIi2sCHSSpk6fsy7yfTU1yb4pKjnJIbfCB5qh3dtg b4RpeUl0GHlQhVv0sh5ESCAg9Ftsyo4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1625052114; h=from:from:reply-to: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=CXEAk0/YVoDTZj0zNXyG5NFhb3NO4Aa1DyfJDSHF32g=; b=mYp76Bkioc4E/dBmb8Zx6V+9hofU6h0x74gRRzZf/aYPdXiX1e7Z+AVP4GVgY5t3QO2TMS kQqmXgnmvOGIWcAg== Received: from quack2.suse.cz (unknown [10.100.224.230]) by relay2.suse.de (Postfix) with ESMTP id 0842EA3B85; Wed, 30 Jun 2021 11:21:53 +0000 (UTC) Received: by quack2.suse.cz (Postfix, from userid 1000) id CB57A1F2CC3; Wed, 30 Jun 2021 13:21:53 +0200 (CEST) Date: Wed, 30 Jun 2021 13:21:53 +0200 From: Jan Kara To: Zhang Yi Cc: linux-ext4@vger.kernel.org, tytso@mit.edu, adilger.kernel@dilger.ca, jack@suse.cz, yukuai3@huawei.com Subject: Re: [PATCH] jbd2: fix jbd2_journal_[un]register_shrinker undefined error Message-ID: <20210630112153.GA27701@quack2.suse.cz> References: <20210630083638.140218-1-yi.zhang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210630083638.140218-1-yi.zhang@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed 30-06-21 16:36:38, Zhang Yi wrote: > Export jbd2_journal_unregister_shrinker() and > jbd2_journal_register_shrinker() to fix below error: > > ERROR: modpost: "jbd2_journal_unregister_shrinker" undefined! > ERROR: modpost: "jbd2_journal_register_shrinker" undefined! > > Fixes: 4ba3fcdde7e3 ("jbd2,ext4: add a shrinker to release checkpointed buffers") > Signed-off-by: Zhang Yi Yeah, I didn't notice this either. The fix looks good. You can add: Reviewed-by: Jan Kara Honza > --- > fs/jbd2/journal.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c > index 7c52feb6f753..152880c298ca 100644 > --- a/fs/jbd2/journal.c > +++ b/fs/jbd2/journal.c > @@ -2122,6 +2122,7 @@ int jbd2_journal_register_shrinker(journal_t *journal) > > return 0; > } > +EXPORT_SYMBOL(jbd2_journal_register_shrinker); > > /** > * jbd2_journal_unregister_shrinker() > @@ -2134,6 +2135,7 @@ void jbd2_journal_unregister_shrinker(journal_t *journal) > percpu_counter_destroy(&journal->j_jh_shrink_count); > unregister_shrinker(&journal->j_shrinker); > } > +EXPORT_SYMBOL(jbd2_journal_unregister_shrinker); > > /** > * jbd2_journal_destroy() - Release a journal_t structure. > -- > 2.31.1 > -- Jan Kara SUSE Labs, CR