Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750916AbdLNHNT (ORCPT ); Thu, 14 Dec 2017 02:13:19 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:39663 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750720AbdLNHNR (ORCPT ); Thu, 14 Dec 2017 02:13:17 -0500 X-Google-Smtp-Source: ACJfBou87jVZ1/k9R+2+xIvqBPNo2EsuJI03+AvU1mQvVIWxfZSqQp73rJJebSDH6tCoO/VqT0bYVVz1dV03aPbwcEw= MIME-Version: 1.0 From: Zhouyi Zhou Date: Thu, 14 Dec 2017 15:13:15 +0800 Message-ID: Subject: FS: EXT4: should we sync error info in __ext4_grp_locked_error? To: linux-ext4@vger.kernel.org, tytso@mit.edu, linux-kernel@vger.kernel.org, inux-fsdevel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 501 Lines: 12 Hi, In function __ext4_grp_locked_error, __save_error_info(sb, function, line) is called to save error info in super block block, but does not sync that information to disk to info the subsequence fsck after reboot. The reason, I guess maybe it is in locked state. My question is why not make a call ext4_commit_super(sb, 1) after ext4_unlock_group(sb, grp) and ext4_handle_error(sb), so that subsequence fsck after reboot is sure to be well informed. Forgive my naiveness. Thanks a lot