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) <yi.zhang@xxxxxxxxxx> > > 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 <jack@xxxxxxx> Yep, this looks sane. Thanks, applied. - Ted