Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2430156pxa; Fri, 7 Aug 2020 10:56:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPdGhTT4xeYqw5Hw5xXf9GaO7WLgQgo0vEqGnj476fx65E/BM+sYt+M6pfKCDtvSeNkabB X-Received: by 2002:a17:906:9717:: with SMTP id k23mr10627164ejx.493.1596822960671; Fri, 07 Aug 2020 10:56:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596822960; cv=none; d=google.com; s=arc-20160816; b=EwcpXFpP4Og4eTqO1tQEJBl4CahaQowVrguPUUQgk/hZqx/IzBoSKWbcfplbAkaIJX OMlDgY97XB1ANq2+FrUwdnzW9ac8BQvob0N42Tj6m0eHxQEhn3PitdPxXHp9FsOfJSK1 qwJd1S8EpgBbVScFDxVDTJIOqCUNMFZs6tCW0HvF5NPWpMIYO8QQlbphELfoZPDK2xKj tz6KUH/MIx+vHNKBO0Hl4AxgfWA1fUAMEuMwIuE8HZfJu0pqAHBlDc94dfA8ig3PpJQk 0gW0tSDNxyURcFGmVcSwRP4L1w9UjK1w54DdKJvvHkcZ8w2Q0dEpIrPt6HGY+2dULO+8 jsfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=WDLix4FeN4K97FYoV8gA2zCnsuwwTJubncXr53xK3DE=; b=0PTDWHUzzjMDP2GlK+EHcP5dshKU1reoMQ1vgBDs1b/g+8/4TJi5F0sxPU/b++anxG MQmyKTpAO3xh426Hj9bLpjuDdYyNu7wMAQHJVEfXwwWdyqD55DkvQa6Zqog+LriNhA56 xdBeTabuyC1jRGkVF45b8vScn7wX5Np/8H5LP39/STai0OBJyMjIOsSb/aLF5aYGrK1A t5hMkwyimM+MezxYBJO/G06JN5AkmADGNnG7SqbhNMr/zvLJwLvcDUZpVoOJAGU8oQmM zeOPwE0OmwapVHNEbA1LTuIIjFHq6OSKWpvoMgiRVchb7binhnrXN3KC/+9UHOxWTwSd 9iLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f1si5392570edm.270.2020.08.07.10.55.36; Fri, 07 Aug 2020 10:56:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726200AbgHGRxr (ORCPT + 99 others); Fri, 7 Aug 2020 13:53:47 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:38341 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726167AbgHGRxq (ORCPT ); Fri, 7 Aug 2020 13:53:46 -0400 Received: from callcc.thunk.org (pool-96-230-252-158.bstnma.fios.verizon.net [96.230.252.158]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 077Hr7KU003226 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 7 Aug 2020 13:53:08 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 6DF63420263; Fri, 7 Aug 2020 13:53:07 -0400 (EDT) Date: Fri, 7 Aug 2020 13:53:07 -0400 From: tytso@mit.edu To: "zhangyi (F)" Cc: , , , , Subject: Re: [PATCH v3 2/5] ext4: remove ext4_buffer_uptodate() Message-ID: <20200807175307.GW7657@mit.edu> References: <20200620025427.1756360-1-yi.zhang@huawei.com> <20200620025427.1756360-3-yi.zhang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200620025427.1756360-3-yi.zhang@huawei.com> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Sat, Jun 20, 2020 at 10:54:24AM +0800, zhangyi (F) wrote: > After we add async write error check in ext4_journal_get_write_access(), > we can remove the partial fix for filesystem inconsistency problem > caused by reading old data from disk, which in commit <7963e5ac9012> > "ext4: treat buffers with write errors as containing valid data" and > "ext4: treat buffers contining write errors as valid in > ext4_sb_bread()". > > Signed-off-by: zhangyi (F) I think it's better to keep these checks (in commits 2 and 3) because ext4_error() doens't guarantee that the file system will be aborted. For better or for worse, there are a large number of file systems which default to errors=continue. So if we notice that the buffer is not up to date, due to a write error, we can avoid some (although not all) damage if we keep this workaround. - Ted