From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 733D3C35241 for ; Sat, 25 Jan 2020 07:59:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 43A282071E for ; Sat, 25 Jan 2020 07:59:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726485AbgAYH7R (ORCPT ); Sat, 25 Jan 2020 02:59:17 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:58268 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726293AbgAYH7R (ORCPT ); Sat, 25 Jan 2020 02:59:17 -0500 Received: from callcc.thunk.org (rrcs-67-53-201-206.west.biz.rr.com [67.53.201.206]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 00P7wxvB031944 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 25 Jan 2020 02:59:01 -0500 Received: by callcc.thunk.org (Postfix, from userid 15806) id 3D63C42014A; Sat, 25 Jan 2020 02:58:58 -0500 (EST) Date: Sat, 25 Jan 2020 02:58:58 -0500 From: "Theodore Y. Ts'o" To: "zhangyi (F)" Cc: linux-ext4@vger.kernel.org, jack@suse.com, adilger.kernel@dilger.ca, liangyun2@huawei.com, luoshijie1@huawei.com Subject: Re: [PATCH v3 1/4] jbd2: switch to use jbd2_journal_abort() when failed to submit the commit record Message-ID: <20200125075858.GI1108497@mit.edu> References: <20191204124614.45424-1-yi.zhang@huawei.com> <20191204124614.45424-2-yi.zhang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191204124614.45424-2-yi.zhang@huawei.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Dec 04, 2019 at 08:46:11PM +0800, zhangyi (F) wrote: > We invoke jbd2_journal_abort() to abort the journal and record errno > in the jbd2 superblock when committing journal transaction besides the > failure on submitting the commit record. But there is no need for the > case and we can also invoke jbd2_journal_abort() instead of > __jbd2_journal_abort_hard(). > > Fixes: 818d276ceb83a ("ext4: Add the journal checksum feature") > Signed-off-by: zhangyi (F) > Reviewed-by: Jan Kara Applied, thanks. - Ted