From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f72.google.com (mail-pg0-f72.google.com [74.125.83.72]) by kanga.kvack.org (Postfix) with ESMTP id 4D78D6B0315 for ; Thu, 29 Jun 2017 10:19:52 -0400 (EDT) Received: by mail-pg0-f72.google.com with SMTP id v36so90184417pgn.6 for ; Thu, 29 Jun 2017 07:19:52 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id s14si3770573pfj.219.2017.06.29.07.19.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Jun 2017 07:19:51 -0700 (PDT) Date: Thu, 29 Jun 2017 07:19:33 -0700 From: Christoph Hellwig 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 Content-Disposition: inline In-Reply-To: <20170629131954.28733-4-jlayton@kernel.org> Sender: owner-linux-mm@kvack.org List-ID: 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 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.. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org