From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Thu, 29 Jun 2017 07:19:33 -0700 From: Christoph Hellwig To: jlayton@kernel.org Cc: Andrew Morton , Al Viro , Jan Kara , tytso@mit.edu, axboe@kernel.dk, mawilcox@microsoft.com, ross.zwisler@linux.intel.com, corbet@lwn.net, Chris Mason , Josef Bacik , David Sterba , "Darrick J . Wong" , Carlos Maiolino , Eryu Guan , David Howells , Christoph Hellwig , Liu Bo , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-block@vger.kernel.org Subject: Re: [PATCH v8 03/18] fs: check for writeback errors after syncing out buffers in generic_file_fsync Message-ID: <20170629141933.GE17251@infradead.org> References: <20170629131954.28733-1-jlayton@kernel.org> <20170629131954.28733-4-jlayton@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20170629131954.28733-4-jlayton@kernel.org> List-ID: On Thu, Jun 29, 2017 at 09:19:39AM -0400, jlayton@kernel.org wrote: > From: Jeff Layton > > ext2 currently does a test+clear of the AS_EIO flag, which is > is problematic for some coming changes. > > What we really need to do instead is call filemap_check_errors > in __generic_file_fsync after syncing out the buffers. That > will be sufficient for this case, and help other callers detect > these errors properly as well. > > With that, we don't need to twiddle it in ext2. Seems like much of this code is getting replaced later in the series..