From patchwork Fri Jun 16 10:15:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 109018 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1225832vqr; Fri, 16 Jun 2023 03:19:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6dmwSZN1mokjJyVZUtqNXHdd3VTvVtIsMNOEJ7g8mmYWzpG9Y6JK/J9VJhN88ZjjDQZsG2 X-Received: by 2002:a17:90b:1643:b0:256:5174:f58b with SMTP id il3-20020a17090b164300b002565174f58bmr1022168pjb.46.1686910741285; Fri, 16 Jun 2023 03:19:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686910741; cv=none; d=google.com; s=arc-20160816; b=rdqp0tLAdC1DNd1Xmek+z6Dtj/irBLKNbE3iIV24/f1NJLeOpNx9f0nKQxvQhqe/kh BE40zZM6ay9ABq0XdgYl+BFW5qYhLgGWiqh6jbbC1921aY0KNDIRs88njh8uuCz2mxdQ wBK8d/Na87d5QMITaHKoz6v0PSnresLBgWQ6AmQjy5axzFXAGKbPeVrBx+RiPXqdLQMN saAlZIUXVhVJnze0OqRi0CRrzopJLaAW3Pc34CKl0qZe4hi3rA4m2arsToK0K4WrpE2t WjcBnoqkRMz4Xq3/WoC2n/1ca6Y6wTJ5QwmeHHwiCtOqklmM72yTS6FyzCqiMhQB0+ac 5JiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=peg5yRbuybnPi3gx3ba9fey27Wv+vETYHIJ6SEXXdhM=; b=oJw7LJbD8lLbFZkBJePdsCvKavIdT+BhjxmurFjKzlZXVHKvsNPYzeMX6KLDb9+6BN LotoYvgFm4gpEc/nM0d99OyO0RMBI2kCAot6ZYfGlXVm4ubVPgVbKV6K3FJuFUdSbrtz DXnS9Ob+2a38O/CGAQnPrKPATDWJtX8k+ZFXE4sL8+x1EYYFGxR0cf41ht3R3XWwhbDt rA1AA5rZadd2C6fXxd2tewwKdA9RkyE7akW4bgsiNfxlMEb4nHJsthdJNFSZIPdNz2U1 SuW5+jEoxy9srkNtZ430P1PXPacwvfhR0/VyMUwEKPUDmOYlZlq2S9ebEE6cv1KJ5+sN j4yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i22-20020a17090adc1600b0025983055d94si1236664pjv.97.2023.06.16.03.18.41; Fri, 16 Jun 2023 03:19:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244732AbjFPKQ1 (ORCPT + 99 others); Fri, 16 Jun 2023 06:16:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245134AbjFPKQO (ORCPT ); Fri, 16 Jun 2023 06:16:14 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAE6C2D6B; Fri, 16 Jun 2023 03:16:09 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.54]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4QjFPg3843zLljW; Fri, 16 Jun 2023 18:14:15 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 16 Jun 2023 18:16:07 +0800 From: YueHaibing To: , , , CC: , Subject: [PATCH -next] ext4: Remove used function ext4_journal_callback_try_del() Date: Fri, 16 Jun 2023 18:15:04 +0800 Message-ID: <20230616101504.32520-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768854117257841743?= X-GMAIL-MSGID: =?utf-8?q?1768854117257841743?= commit a015434480dc ("ext4: send parallel discards on commit completions") removed its last caller so drop it. Signed-off-by: YueHaibing --- fs/ext4/ext4_jbd2.h | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/fs/ext4/ext4_jbd2.h b/fs/ext4/ext4_jbd2.h index 0c77697d5e90..33b9d328ca9e 100644 --- a/fs/ext4/ext4_jbd2.h +++ b/fs/ext4/ext4_jbd2.h @@ -185,27 +185,6 @@ static inline void ext4_journal_callback_add(handle_t *handle, spin_unlock(&sbi->s_md_lock); } - -/** - * ext4_journal_callback_del: delete a registered callback - * @handle: active journal transaction handle on which callback was registered - * @jce: registered journal callback entry to unregister - * Return true if object was successfully removed - */ -static inline bool ext4_journal_callback_try_del(handle_t *handle, - struct ext4_journal_cb_entry *jce) -{ - bool deleted; - struct ext4_sb_info *sbi = - EXT4_SB(handle->h_transaction->t_journal->j_private); - - spin_lock(&sbi->s_md_lock); - deleted = !list_empty(&jce->jce_list); - list_del_init(&jce->jce_list); - spin_unlock(&sbi->s_md_lock); - return deleted; -} - int ext4_mark_iloc_dirty(handle_t *handle, struct inode *inode,