From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f195.google.com ([209.85.220.195]:35711 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753163AbdF2URc (ORCPT ); Thu, 29 Jun 2017 16:17:32 -0400 Received: by mail-qk0-f195.google.com with SMTP id 16so13037131qkg.2 for ; Thu, 29 Jun 2017 13:17:32 -0700 (PDT) Message-ID: <1498767443.5710.1.camel@poochiereds.net> Subject: Re: [PATCH v8 03/18] fs: check for writeback errors after syncing out buffers in generic_file_fsync From: Jeff Layton To: Christoph Hellwig , 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 , 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 Date: Thu, 29 Jun 2017 16:17:23 -0400 In-Reply-To: <20170629141933.GE17251@infradead.org> References: <20170629131954.28733-1-jlayton@kernel.org> <20170629131954.28733-4-jlayton@kernel.org> <20170629141933.GE17251@infradead.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-btrfs-owner@vger.kernel.org List-ID: On Thu, 2017-06-29 at 07:19 -0700, Christoph Hellwig wrote: > 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.. It does. I suppose I could squash this in with the __generic_file_fsync patch. -- Jeff Layton