Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1536516pxb; Thu, 7 Oct 2021 09:39:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpIwM4KocxA7NdiSGqEBGOJBSl++8+UD4jF6IadPT0RyjGt4hywu561/FpG8KK1p5n2tK8 X-Received: by 2002:a62:403:0:b0:433:9582:d449 with SMTP id 3-20020a620403000000b004339582d449mr5361272pfe.15.1633624774281; Thu, 07 Oct 2021 09:39:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633624774; cv=none; d=google.com; s=arc-20160816; b=F1WiE1IanTCFDZ/oI4cmry14n/98x2ASP8vBkBVTxDLWmEDQu+DXnIPaGnWYT5KzWp r3z333MSA0lN1R7NYB/1nZ+oig+mallbhDJxIqd8qTNS2BY4IJdYY7Sz5YYlZxm/NSk+ 9WFqCvuce77U8u51YZk6aOcQtcIFek1f0OTivtVlcb1hM1/TGlZlVPtw7aM1Jc+8EjDf 4wWSbwOfHLS3heSSlwchVXYRQYo5u8Cq1VyZ1sDUcLf3llBpbCSfql+ZuOqojmtRAKI+ n2Sk+GJFQlcemJx8br9Vj4J8kcsV1UgzeeXrkYI5xfic4pnZuZe4rurVQsioz/psaW0E RjtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=wJaT2zd98eiEVK7HUNqGGBB6OHk7E/OIIIW9tk/C5RY=; b=lPnTa33D6EOnwbASrleksJTNMBlslxCDTqC6SrqtaIZvfywtpoq8jU77Oy4uVbGZRo 9ydPE8b+OMHJhqIM0PFYje3O9Ns5VCtTWMkQPnku+1d35B6qwOhvQhqvfQwZT7R1d/cq jZf/RZPkEQ2y2glK27eKvosUSYbTFOMg6nPi83gTaUi/chys4DnLJVKDXAnsqfWaQ9ok JpnamuW6W+0Fsxyt/6dFZLaHUeBIIMKLYALJuNGDmef9z/kaWN7kl+vVzzyYGjszoqS8 +VXqu1N4cOhbdZt6raEIaQ/604p/NkxobWyUXLro0JxWuwIJRHa9244vuZILBdpwpS0Y ogfg== 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 h5si76595pgv.452.2021.10.07.09.39.15; Thu, 07 Oct 2021 09:39:34 -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 S242700AbhJGQjl (ORCPT + 99 others); Thu, 7 Oct 2021 12:39:41 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:34234 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233594AbhJGQjk (ORCPT ); Thu, 7 Oct 2021 12:39:40 -0400 Received: from cwcc.thunk.org (pool-72-74-133-215.bstnma.fios.verizon.net [72.74.133.215]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 197GbWHm021228 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 7 Oct 2021 12:37:33 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id CE4DE15C3E70; Thu, 7 Oct 2021 12:37:32 -0400 (EDT) Date: Thu, 7 Oct 2021 12:37:32 -0400 From: "Theodore Ts'o" To: Zhang Yi Cc: linux-ext4@vger.kernel.org, adilger.kernel@dilger.ca, jack@suse.cz, yukuai3@huawei.com Subject: Re: [RFC PATCH 2/3] ext4: check for inconsistent extents between index and leaf block Message-ID: References: <20210908120850.4012324-1-yi.zhang@huawei.com> <20210908120850.4012324-3-yi.zhang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210908120850.4012324-3-yi.zhang@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Sep 08, 2021 at 08:08:49PM +0800, Zhang Yi wrote: > Now that we can check out overlapping extents in leaf block and > out-of-order index extents in index block. But the .ee_block in the > first extent of one leaf block should equal to the .ei_block in it's > parent index extent entry. I don't believe this is always guaranteed. The punch hole operation can remove some or part of the first entry in the leaf block, and it won't update the parent index. So it's OK for the first entry of the leaf block to be greater than entry in the parent block. However, if the first entry of the leaf block is less than the entry in the parent block, that's definitely going to be a problem. - Ted