Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5905982ybl; Sun, 22 Dec 2019 17:44:48 -0800 (PST) X-Google-Smtp-Source: APXvYqz4WKpe7Rx3kincXlJqwLIJ5e4Tw8B8HuPWPZkZSBh6ur0X/Pl8djwLcul1AJI1YEB3l+yo X-Received: by 2002:a05:6830:4b9:: with SMTP id l25mr30503311otd.266.1577065488285; Sun, 22 Dec 2019 17:44:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577065488; cv=none; d=google.com; s=arc-20160816; b=G/zk8iQ1hrfigwqfJDNO9v/3vx/WEMo9qlqJIqrM7mgVkO9X7jM8zMIphSyQN+KDtC KcZoACgkXhbhViop7mWmDnv6LxOHBB5IPUS3Y14hYZ87/q8PGYssLYnnKkmbZ28fyv73 1wRI15d+uSS36kQeR1to1kNnVoauEG0hIBgclUmbbWQfLFRJ0/nOu7rJC0CoQ2h5OKPg czuySnrE3lSJDodf1Ko69eBJpERuNvV9cseMuuBcdNkm8N1BbOFyZh5Y41MEEgqZAqy2 PSbn4h7E8JOfX8c+SsmhKE4dyiUXpTYqoAYg0j4Jb8zMVd64CqjW8jpwI35sJjB8GnfK Mauw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject; bh=+7eA8Db/AGbwMVafa7o0Nz71gEMD1mxTb20iVqjpIUk=; b=myFdiCx2T0qLZs2G2sQ0Gr+vfYBZWlojQN98p6ti8yas6dpMPzm6naUoTDfdRtI7RY L/F2B5PltO80NT6Fhz6ibHi2ZNyKu65f01xCxswtYArDG1i2di1GCndMkTHI0jJ9u02D tKzXYOzoheXpAQvMPlAE+vrHaG5NAHLNeKeAQRaRzBQD3KlcYpsz/L4SfcOLlVBLibCU Lwi1dHPkLCljQSXxkXdiHG+VFMK+Y8Kh82s+a3/aYogZo4wSlB4lPMAj3qVrZw90GJjs elSwta24VhakanpnxWhrXgBKf0OrChRXKp0ZtR1PeJyLt/fdCzEKyJyF7oRhcdapstMe EIKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2si799895oto.207.2019.12.22.17.44.28; Sun, 22 Dec 2019 17:44:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726539AbfLWBo2 (ORCPT + 99 others); Sun, 22 Dec 2019 20:44:28 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7726 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726393AbfLWBo2 (ORCPT ); Sun, 22 Dec 2019 20:44:28 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 19DACDF0720E361061CF; Mon, 23 Dec 2019 09:44:25 +0800 (CST) Received: from [127.0.0.1] (10.173.220.179) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.439.0; Mon, 23 Dec 2019 09:44:23 +0800 Subject: Re: [PATCH v3 3/4] jbd2: make sure ESHUTDOWN to be recorded in the journal superblock From: "zhangyi (F)" To: , CC: Jan Kara , , References: <20191204124614.45424-1-yi.zhang@huawei.com> <20191204124614.45424-4-yi.zhang@huawei.com> <20191204170528.GH8206@quack2.suse.cz> <1f8eb86e-53c0-a547-a1e5-b7411d36ac3e@huawei.com> Message-ID: Date: Mon, 23 Dec 2019 09:44:23 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <1f8eb86e-53c0-a547-a1e5-b7411d36ac3e@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.173.220.179] X-CFilter-Loop: Reflected Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On 2019/12/5 9:23, zhangyi (F) wrote: > On 2019/12/5 1:05, Jan Kara wrote: >> On Wed 04-12-19 20:46:13, zhangyi (F) wrote: >>> Commit fb7c02445c49 ("ext4: pass -ESHUTDOWN code to jbd2 layer") want >>> to allow jbd2 layer to distinguish shutdown journal abort from other >>> error cases. So the ESHUTDOWN should be taken precedence over any other >>> errno which has already been recoded after EXT4_FLAGS_SHUTDOWN is set, >>> but it only update errno in the journal suoerblock now if the old errno >>> is 0. >>> >>> Fixes: fb7c02445c49 ("ext4: pass -ESHUTDOWN code to jbd2 layer") >>> Signed-off-by: zhangyi (F) >> >> Yeah, I think this is correct if I understand the logic correctly but I'd >> like Ted to have a look at this. Anyway, feel free to add: >> >> Reviewed-by: Jan Kara >> > > Thanks for review. > > Hi Ted, do you have time to look at this patch? > Genteel ping. Thanks, Yi.