Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp287793rdf; Thu, 2 Nov 2023 23:58:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGSmtY28780l0ElqmYt9P8upd5KD/GF8O16Nhm+jLEbd3sDU+IZ7wm4yoG2RhCcOVYAsRFr X-Received: by 2002:a05:6a20:3ca2:b0:152:4615:cb9d with SMTP id b34-20020a056a203ca200b001524615cb9dmr2324957pzj.12.1698994687160; Thu, 02 Nov 2023 23:58:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698994687; cv=none; d=google.com; s=arc-20160816; b=MgHR3uy0VAoSqtlYyhDwPcK3AUmlqfA6I9zdu+mqManPjBhOVSzujsR+BULUgCn4ke t/BqQxJ96s+QtyF5UaSEItJTQaUkK+8/ihbXXNvGnWVSeJ+Rm9OXxUWDLQfo27O/oWmq /O0sPrCfjkJO61XbWTxdLN2WpQJlB67AqSFwDhQpqmo0N19VR1txB6xhR7B3vO34LZwu gou3aoV+g97oOaQaixEpYJrMVAW6rz/0Ap66lGisk4wxNC3A448lcxmZ7O65PknI2Kcm rwGA/kqZOjcryCdcJdZqphYweRiwqi83z8nFJYtY5vL2e1I45mGiIuT6560ph1S38gry vwnA== 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=u8ddBY2O2gZdnsGuTWY8hx64tRCm2NfSlr1kboUCuns=; fh=FsznnDxpmef1vC1z7PHIgrdOV6pY0Temw/oyToZsikg=; b=F3enJix5+M8dxbg3zc8TxdWVrhuCSjL1MF6Aw0D6MbaRxjbgrzXXN5yx6hs0Eehfp1 r/i1ZIQQMhCE0j92LUgY7TvOlNbclMB5J/SK3OhuReuJxiYqv+P1j6FUAC0x1pTOzev1 r8AR7iejMJgurcLxe++MnvI5706tz4lz5E/xMN7JYdt87lyusPqWNmFoGRr2YJgf0fhq p8onWBP6KZwz3XCUB2z5GwUHiJOGe875ZQjg7z5iiYGgAU7ZCPgyxeaNyE6mXLrOzCzp FVfKtnZcpps9lWk0BRz6c9dEpcs1rgMRIpNCWfDupd2pnsTJjnmvJcAzPSqMPZeBptWQ yF9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id e18-20020a656bd2000000b005b969c62b27si1075476pgw.747.2023.11.02.23.58.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 23:58:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E497C80699EE; Thu, 2 Nov 2023 23:58:05 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232674AbjKCG6F (ORCPT + 99 others); Fri, 3 Nov 2023 02:58:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232633AbjKCG6F (ORCPT ); Fri, 3 Nov 2023 02:58:05 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 698CEE3 for ; Thu, 2 Nov 2023 23:58:02 -0700 (PDT) Received: from kwepemm000013.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4SMBM35HmFzrTjT; Fri, 3 Nov 2023 14:54:55 +0800 (CST) Received: from huawei.com (10.175.104.67) by kwepemm000013.china.huawei.com (7.193.23.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Fri, 3 Nov 2023 14:57:59 +0800 From: Zhihao Cheng To: , CC: , , Subject: [PATCH 0/5] jbd2: Add errseq to detect writeback Date: Fri, 3 Nov 2023 22:52:45 +0800 Message-ID: <20231103145250.2995746-1-chengzhihao1@huawei.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.104.67] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm000013.china.huawei.com (7.193.23.81) X-CFilter-Loop: Reflected X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00,DATE_IN_FUTURE_06_12, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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-ext4@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 02 Nov 2023 23:58:06 -0700 (PDT) According to discussions in [1], this patchset adds errseq in journal to enable JDB2 detecting meatadata writeback error of fs dev. Then, orginal checking mechanism could be removed. [1] https://lore.kernel.org/all/20230908124317.2955345-1-chengzhihao1@huawei.com/T/ Zhihao Cheng (5): jbd2: Add errseq to detect client fs's bdev writeback error jbd2: Replace journal state flag by checking errseq jbd2: Remove unused 'JBD2_CHECKPOINT_IO_ERROR' and 'j_atomic_flags' jbd2: Abort journal when detecting metadata writeback error of fs dev ext4: Move ext4_check_bdev_write_error() into nojournal mode fs/ext4/ext4_jbd2.c | 5 ++--- fs/jbd2/checkpoint.c | 11 ----------- fs/jbd2/journal.c | 11 ++++++----- fs/jbd2/recovery.c | 7 +------ fs/jbd2/transaction.c | 14 ++++++++++++++ include/linux/jbd2.h | 37 ++++++++++++++++++++++++++----------- 6 files changed, 49 insertions(+), 36 deletions(-) -- 2.39.2