Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1422819ybl; Sat, 25 Jan 2020 00:01:35 -0800 (PST) X-Google-Smtp-Source: APXvYqzfGVKrke2P4ANUwoKbg9tbegoQupPx9DFLgB9kGHLqd6KT/kTIX3Isq1rczCc33/YmqUBr X-Received: by 2002:aca:3017:: with SMTP id w23mr1745925oiw.152.1579939295818; Sat, 25 Jan 2020 00:01:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579939295; cv=none; d=google.com; s=arc-20160816; b=vhEeIRTHhDaCdkpP7LC2lJYYA7IJnJgbrV4P58LXndtMAemsxKG0qiPNSn3PnSmARf OCnjk1nGREdzB7rqWr/cjQNAxI6nGt6BmeUZkcdkauA3fwjt2iwhmvH2ghGdh0cN2GG7 /EM4la4EDwYrd+JY3IVjfTEYFJ25zHUZpKYpjnN8U4EMTiueAFdZyLlLJ4P2gpkRpo6W xXowiShdtFmjvKtGAHfulEheksre/hd3iCPGwCZjPPAPbUE0MeacI55zWTL1V7FTwler XFGexRxJZMaQNDzjB2ERMgv208SGnoHFsth1boSIHS8lHQzSRa12NU1RTuDpMr7nYosG pVQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=VlhTG3dN0LoWIi9O8KVn6FaijsvULgO4tXubpG33RAA=; b=sgagTb73qxbqhARc1+1WTavFfz77FV7zGIIFeKOmMMhciPRmXQtORg9/03YEHe/7oz AI26DYhmvJedYxpQUhX7e0z6ZyHlBpFwLQqNn5TlCvC8IDiUocIJ8v4y0bO9M42IdMnN E0Sc2CpRsUxK/2Cj4s4Lhw26Gz7qphW0jI4npbLWCc1Wu/NwBtT8Ajz6MtZtYLSY6jSM hpYchcJC6QpseTu7k/LsHVB9us/KY8U1dw5I0WcYR8T6KpWekzJ4QbP8EmjL3mUKnMlH rP0zwRKYQSBx2jZvrBMjeUua+4kgBdlNU7WWcZviIMRqQj3GkeGcpBH1SyzsB6sNi5jG HnvA== 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 p24si4256416otq.194.2020.01.25.00.01.25; Sat, 25 Jan 2020 00:01:35 -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 S1727441AbgAYIBB (ORCPT + 99 others); Sat, 25 Jan 2020 03:01:01 -0500 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:58652 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726293AbgAYIBB (ORCPT ); Sat, 25 Jan 2020 03:01:01 -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 00P80jmq032238 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 25 Jan 2020 03:00:48 -0500 Received: by callcc.thunk.org (Postfix, from userid 15806) id 209C742014A; Sat, 25 Jan 2020 03:00:45 -0500 (EST) Date: Sat, 25 Jan 2020 03:00:45 -0500 From: "Theodore Y. Ts'o" To: Jan Kara Cc: "zhangyi (F)" , linux-ext4@vger.kernel.org, jack@suse.com, adilger.kernel@dilger.ca, liangyun2@huawei.com, luoshijie1@huawei.com Subject: Re: [PATCH v3 3/4] jbd2: make sure ESHUTDOWN to be recorded in the journal superblock Message-ID: <20200125080045.GK1108497@mit.edu> References: <20191204124614.45424-1-yi.zhang@huawei.com> <20191204124614.45424-4-yi.zhang@huawei.com> <20191204170528.GH8206@quack2.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191204170528.GH8206@quack2.suse.cz> 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 06:05:28PM +0100, 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 Yep, this looks sane. Thanks, applied. - Ted