From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796299274; b=BC8/oBTEDFpVWDGT9kVnOtbPqs3slLFeZjeYw8Wyk+jb1Hu7Zn3QNtTkBqUWKIoTx/4v nbINwzj1d76Gm11ckhM8pUnVQZ2rH0GexwGRGyv8hP2tiz01HmnkdHiN1QYnnhvosztPt PktugX2UjxmDiFbdWeYUo6+ZlT0HhI4Ell5e4FzcIguBvVBbHXWyboRUYkzzFyAECd4wJ 6nTteDT+2XFrw7id3M83JQclMOZAH4x5zlYMDmOV0w8tBPAeYPEqZKB33+1M3kLIkbvKk int8GuR221l8Zu19YPjoUCbo1wOx3l38J1DB4vsuoJZGFQgAQabQxQ33UDuHdvB4Wyw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796299274; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=BSahR+IoEju4WOyh5T0Jw9/rbraRplUa4Rmm8m8OnEA=; b=EvoAmtwnM4+uO3YNBbDndhgTxDuIs18+zsQWkIM66wiiIixvNdKTB2T8Wi6GeDVNhaIm 462IuYh7CbjiEwhdJk4+6ytyvfKFJgnNxTUfWbHVX32G4rfYIIEJu40+UTPcMsSfNk0lP G31YXW6uRpnenyeIyE1pdZI2YzjSGQf+h4BzrjRIryPWI9vozlErdjDoFcU7Ss49lFYMY cLsckbz5vQ3BOVCQUHWD4HjI2LwkYaJjahu3+ee1oaV50TPgxQisBap92LbJV28lofX1E 4cfAGldzr8fG1WItI/tvu+ZDmkdNkZFHpXxlbmuw7WPfMNxYp+XMzKCnDDhm8Q2TXRw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OKZYMth7; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 121D1606A322 for ; Thu, 3 Dec 2026 12:01:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OKZYMth7 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F13A1F000C1; Thu, 3 Dec 2026 12:01:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796299273; bh=BSahR+IoEju4WOyh5T0Jw9/rbraRplUa4Rmm8m8OnEA=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=OKZYMth7OxmSpl7x9XGxqclNfAcMvBJfqzQKTB1p0y9/KSZ3CHgCI2Zq1romTAeXJ oUSk1hYyEllu5pW3JsB84YOnN3O2MNwro7r2AVv1i5vUGDo4x8wqK+APDtufTjpYQT kJkl6qkHhql/wUAOSG/29ZA5cgzAJIQsk6bHj2bn0Ou/ZwXBph5GBhbRRfzztNgenx OKaLoOULHUAPq1p55G96DeBIPV7AFMsclEnI3zjmsUdgnYLwtK7jGqvXfBVMav7r9L cbmk26Got8+DdysfenK+/O6gZK5yVRQsApNfskFR9lrUhg6YG13E0kFQXzoFlyZlZN eB7jvVDka36Pg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2] generic: punch a hole past EOF over preallocated blocks Reply-To: sashiko-reviews@lists.linux.dev To: "Ding Feng" Cc: linux-ext4@vger.kernel.org, tytso@mit.edu In-Reply-To: <20261203115229.50163-1-dingf3ng@gmail.com> References: <20261203115229.50163-1-dingf3ng@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 12:01:13 +0000 X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > Blocks that fallocate(FALLOC_FL_KEEP_SIZE) allocates past EOF should be > freed by a later FALLOC_FL_PUNCH_HOLE over them; fallocate(2) says whole > blocks in the range are removed. XFS and tmpfs do so. ext4 returns > early for a hole that starts at or past i_size and leaves them allocated. >=20 > Write one block, preallocate 16 blocks with KEEP_SIZE, punch the 15 > blocks past EOF, and check with fiemap that no extent is left there, and > that the size and the data below EOF are unchanged. >=20 > Signed-off-by: Ding Feng Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203115229.5016= 3-1-dingf3ng@gmail.com?part=3D1