Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp127563pxv; Wed, 30 Jun 2021 01:29:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxF932JoujdIYp5dUhxrqG1Wq9qGGAN9mWD0DXMBmjXXcbMn5ip5W3Kpc1OgbVQZocdrmDz X-Received: by 2002:a05:6e02:d04:: with SMTP id g4mr23573283ilj.165.1625041793406; Wed, 30 Jun 2021 01:29:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625041793; cv=none; d=google.com; s=arc-20160816; b=XwHMkyCoLE54f8cO//yndSw9lEQDG9+liKxOe7ap7cGbrx/c7taoV0OLXdsNQq1Wb/ WYKCVuFnc6E94+gbavxh4gIUaXpEjKCVP5ev5/MsPKSUCQTaSFZ1T5BD/oH2WEdJv4ph 0Yk4+Qk8IVEWLJl5Rkw8fPuLKxJdAOyNFkGarfzyUtMOC3/2mRUgEgme+wli5eHfwv7v c9AATXSjPQzkz6i0E6geYdNHl58lsge4UwYY+bsicXmXu+gfXApmtRgBH6wym846M3t5 Cl5BhK3FmaENRTPpHxiSL8+OpUbegoiQGowSisa5WVLjCQan7hZK5WgM6svuya5H2+SB uGew== 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 :message-id:date:subject:cc:to:from; bh=4l50UnYVO0Nn5lo6Y7dhvxtodXRuhRXpn3nOW0q+NH4=; b=xE1UeooplCPIWOZRdIpfCPOgzIPk92PKwQUNTrCYMPvcaq+5B4ultPHAy1cg40FyRK vnDMhW8exFceoXeqJWkZMl9e/64LZdKRaE7VoB2coMGDHSUfyErWSLVoVcH5B+jbry9Z Yb4oKExCW/eDU3hPMK+fBiP9LdAJPmyrrCACHf6T/Q7uQrhxXKRr0fv6iRi4K/OWpTtg 4kFv7vY2uFddbHwNQEr8CXHWvV0cSeaX/wmPIKkr3U/c84CrRajcjRoqpkdbFC84Zb0o fqUDd5q0BGc71vaubsOZCWzaBb2hAyJVG5sVQDWlgGp3xIXwU7lCyJcmKO49ozg0Ra4P ln1g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m4si23804191ioy.95.2021.06.30.01.29.41; Wed, 30 Jun 2021 01:29:53 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233665AbhF3Iaa (ORCPT + 99 others); Wed, 30 Jun 2021 04:30:30 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:9435 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233686AbhF3Iaa (ORCPT ); Wed, 30 Jun 2021 04:30:30 -0400 Received: from dggeme752-chm.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4GFDsx6GRyzZns0; Wed, 30 Jun 2021 16:24:53 +0800 (CST) Received: from huawei.com (10.175.127.227) by dggeme752-chm.china.huawei.com (10.3.19.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 30 Jun 2021 16:27:59 +0800 From: Zhang Yi To: CC: , , , , Subject: [PATCH] jbd2: fix jbd2_journal_[un]register_shrinker undefined error Date: Wed, 30 Jun 2021 16:36:38 +0800 Message-ID: <20210630083638.140218-1-yi.zhang@huawei.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.127.227] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggeme752-chm.china.huawei.com (10.3.19.98) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org 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 --- 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