Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp598926pxb; Thu, 9 Sep 2021 07:56:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRwfQfFv+1mIameDXGm44ZoaINqEc1pYz4Uy4pztUPchuwsizjLUNTYLRtxUvnUGUZmk4t X-Received: by 2002:a17:906:2bc3:: with SMTP id n3mr3767764ejg.548.1631199385593; Thu, 09 Sep 2021 07:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631199385; cv=none; d=google.com; s=arc-20160816; b=YuRTswWQ9txUWxvTXEEHSfwqI/NNbpPG8QEgmMcs7lxO0dN6bOHBphGGqiLk2YWGht xUpZ/scK0zqGQ/8orH74X43RzAVdKDryuwnwMTR4K42YGvGEsnLWdmPhahHSNG9xZ/Tq bgn0Ps3zL88OPAmf46Bzn8BC4+KeEByUrimYzyzCvGXvYXYCvL14lsxpWK2efGqkgTI2 1lOCYqn9/Boss+m5LCgUBnDGt1DCb5RVpYEXxnhPrsF6C4R38Id1/MCeBKu6lo1kzeAi uBe16+TM+8udz+2bHTVTc/MZ/4Zy8xR8RvTBwO3NQgsvk5cFuF9pFisXOdv5caVZQV3O 23CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=LjTskiKb0IFR1QQXt2F0jp3fvhJJQeiCQ50Fhp1d4AI=; b=MhhaHcPv1Ah07ceX8WgW5bb/gc+esqPekd0FgdkF7n+jb7DIa8flXpMwl/fi9WgMr1 ALDrZFbo9WieU0HZmlteEuWpIZhA5pXZ/HeVzXgE1tl8TInevXkoT7I3EXEKSIQli/um TIL08tyIOoIVZnF809Ur4FvWOr/uM1RUVeURzWA7TdigG0MYyKBgricNA12M1HvEbv8i Vej0MfwV/xits2GMjp9+CqWfHAstqQYAf2Wdg+Y3fyXjHQTCAIwAeeafd6tNWAEOCZgf g4MarhoHR2UK/Y4hIZBAiMz9AQg+u0dDgjQIavnNecb8K48IeuN65G54d/Vp6znNyp4S Gy9w== 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 18si1965235ejj.568.2021.09.09.07.55.50; Thu, 09 Sep 2021 07:56:25 -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 S236487AbhIIO4l (ORCPT + 99 others); Thu, 9 Sep 2021 10:56:41 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:60892 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236469AbhIIO4k (ORCPT ); Thu, 9 Sep 2021 10:56: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 189EtSVY030513 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 9 Sep 2021 10:55:28 -0400 Received: by cwcc.thunk.org (Postfix, from userid 15806) id E778415C33EC; Thu, 9 Sep 2021 10:55:27 -0400 (EDT) From: "Theodore Ts'o" To: linux-ext4@vger.kernel.org, Eric Whitney Cc: "Theodore Ts'o" Subject: Re: [PATCH 0/2] ext4: fix inline data / extent status truncation bug Date: Thu, 9 Sep 2021 10:55:21 -0400 Message-Id: <163119924594.1572869.14850032196390151608.b4-ty@mit.edu> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210819144927.25163-1-enwlinux@gmail.com> References: <20210819144927.25163-1-enwlinux@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, 19 Aug 2021 10:49:25 -0400, Eric Whitney wrote: > If ext4 converts an inline file to extents when applying writes under > delayed allocation that exceed the available inline storage, one or > more delayed allocated extents may be stored in the extent status cache > with an accompanying increase in the reserved block count. If the file > is subsequently truncated before writeback occurs, that inode's delayed > allocated extents will not be removed from the extent status cache and > the reserved block count will not be reduced as required after > truncation. At minimum, unexpected ENOSPC conditions can occur. > > [...] Applied, thanks! [1/2] ext4: remove extent cache entries when truncating inline data commit: 0add491df4e5e2c8cc6eeeaa6dbcca50f932090c [2/2] ext4: enforce buffer head state assertion in ext4_da_map_blocks commit: 948ca5f30e1df0c11eb5b0f410b9ceb97fa77ad9 Best regards, -- Theodore Ts'o