Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp398306pxv; Wed, 30 Jun 2021 08:05:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxskKYP7JjfZjO0j1p2S+SV+mVKo/rHNbDL5ewtPYrRZOl5Tl2a2jdtHL/nlPnjqYoTWCtY X-Received: by 2002:a5d:46cc:: with SMTP id g12mr23359742wrs.136.1625065527055; Wed, 30 Jun 2021 08:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625065527; cv=none; d=google.com; s=arc-20160816; b=aruTcSVx9/no92p/sXv+CJNWsRSWzw5gZfAIJWWPxSpFlz2STW9EK7x+f3o6ragG5i uaRf1GkB/Ew8y9/bqfyK6hCrwk7sSoi5wKDOYTvXqZPBOKzLJL2BNbYxfFN1Uzrj5jYZ oulAWhLlnczZXExKo580RoKqnk7jGe5ldGWfEm+V7Gt1KgOO9IJ8a+kyg/K0Y8AX9tlL 20CNefSBS2AEJig28vQy5KvA4xUe2XtD7MfNDXNpDtL0voJ/opfxX09bpiqJn6cPtw53 rQj5zBFTZ+kGj1ACw9zp6oOR7xgK9AIpQQJSqi8R5pxkd2LJfRai7mg/2AN2zacKNTol yTuw== 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:date; bh=bGM1r9QmiV3TLGAp10mROOcQk8ctEvtQMZoMzGVEB/Y=; b=f8fd2L5/o8UQAWXlfsCriYhP0muJfq+vyYxwef8UuWQEbDNMJ13Z8zz+hRa9nEXYAs ywhQMHdeP4aM6Joz0HiIM6vMgX3j6T13SvqM07zcC+ZqgZV0qrlnKxoyL2JaG7WxqD8z KspIBFaMiFdJRuGsj0pN/f7e7g+jUigBTfngRQ2ZLBKNAtPYzvQ8fg7K872NB0QDJ3wT el+zoNL2dnBjwVgPZwNqCvmNt3hR2gwzZhNlDIkoRmjwsKjq3yFNV7E4TsJKJBFVXle9 Dg8AQ0fjxzjB4IjLYMlIaQnf7G/7BJHjb5CvEPUdglBcCtVhhzxzAI06hCtp386VV++z 7+xg== ARC-Authentication-Results: i=1; mx.google.com; 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 ig2si20243076ejc.57.2021.06.30.08.04.54; Wed, 30 Jun 2021 08:05:27 -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; 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 S235428AbhF3PHT (ORCPT + 99 others); Wed, 30 Jun 2021 11:07:19 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:51154 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S235416AbhF3PHT (ORCPT ); Wed, 30 Jun 2021 11:07:19 -0400 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 15UF4W1R002144 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Jun 2021 11:04:33 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id A39B515C3C8E; Wed, 30 Jun 2021 11:04:32 -0400 (EDT) Date: Wed, 30 Jun 2021 11:04:32 -0400 From: "Theodore Ts'o" To: Zhang Yi Cc: linux-ext4@vger.kernel.org, adilger.kernel@dilger.ca, jack@suse.cz, yukuai3@huawei.com Subject: Re: [PATCH] jbd2: fix jbd2_journal_[un]register_shrinker undefined error Message-ID: 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> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Jun 30, 2021 at 04:36:38PM +0800, 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 Thanks applied, with a slightly clarified commit message: commit e102693820c5b5bbd56958c0940e7bc2d2f80a5a Author: Zhang Yi Date: Wed Jun 30 16:36:38 2021 +0800 jbd2: export jbd2_journal_[un]register_shrinker() Export jbd2_journal_[un]register_shrinker() to fix this error when building ext4 as a module: 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 Link: https://lore.kernel.org/r/20210630083638.140218-1-yi.zhang@huawei.com Signed-off-by: Theodore Ts'o - Ted