From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A5FF53E765A for ; Thu, 8 Oct 2026 10:26:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.24 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791455180; cv=none; b=uCszu3PV3HknSKo6OE9gtWV7KEUzIDvf6+ILQfzfTsSV/ZSqafC1l85tvnwmpI8Gk95goWPO8dffnrg/U0N/OyetEBQ7YwZCyuZF74xx/p631ZV9TAEw/ERSs4ZOeb28eyJ9SwWRj3ujRI/uL3xwKVgQu6e6fTZbJBxeWiyZtK4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791455180; c=relaxed/simple; bh=HzR9WNnD+ifJl3sRZqNLJRURJgYZXfwYK1/idMmy6xE=; h=Mime-Version:Subject:From:To:CC:In-Reply-To:Message-ID:Date: Content-Type:References; b=NPijZ8jeU2DSobJ2lm1UegmaTosK2gXBQemwKtGCOqRfHyqHsSwd7GFX4AiACPPoPhM7XW3wW9f0zfJC7dwbEU4OTimVS4eoGgFboOYgTMIxYxcLjl5pq/2Yvrm7LmaWzn3nZLIZVigWtL9Jh2uE0/cA/c+NQq8hjr03gK6Dx+4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=jQoNIQBZ; arc=none smtp.client-ip=203.254.224.24 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="jQoNIQBZ" Received: from epcas2p4.samsung.com (unknown [182.195.41.56]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20261008102616epoutp015c7501e14ba5a3a301a52a0cb814152d~chv3IqSYc0073800738epoutp01h for ; Thu, 8 Oct 2026 10:26:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20261008102616epoutp015c7501e14ba5a3a301a52a0cb814152d~chv3IqSYc0073800738epoutp01h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1791455176; bh=HzR9WNnD+ifJl3sRZqNLJRURJgYZXfwYK1/idMmy6xE=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=jQoNIQBZG1PoMNBYOrZK4iaS8DB0jBSPUEpw0AeNZrr4YEDFTs2pU1sRlOOz57hT3 pMmxnz+hiDTyykXcnZoyghomJzWY9DMVZ9H4o7cYfBRhRggnlsKk0fGo2+TWMT+goM /fvZe6FZrK/unjW6BvVbbs8IwIPsMn5qn3OqlzMc= Received: from epsnrtp03.localdomain (unknown [182.195.42.155]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPS id 20261008102615epcas2p275f7269caa86134c5081a53ee069e69a~chv2t-f9J0793507935epcas2p2h; Thu, 8 Oct 2026 10:26:15 +0000 (GMT) Received: from epcas2p4.samsung.com (unknown [182.195.38.205]) by epsnrtp03.localdomain (Postfix) with ESMTP id 4j0mP33rdYz3hhT9; Thu, 8 Oct 2026 10:26:15 +0000 (GMT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Subject: RE:(2) [PATCH v2 2/2] ext4: track zeroed out blocks of unwritten extents for fast commit Reply-To: daejun7.park@samsung.com Sender: Daejun Park From: Daejun Park To: Jan Kara CC: Theodore Ts'o , "linux-ext4@vger.kernel.org" , Andreas Dilger , Baokun Li , Ojaswin Mujoo , "Ritesh Harjani (IBM)" , Zhang Yi , Zhang Yi , Harshad Shirwadkar , Li Chen , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" , Daejun Park X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <2lgtlg7ydx4qeau2nvv5wkcuc2jkvwdcrav7gbxmxdieptkwl4@emgyfuxuskiu> X-CPGS-Detection: blocking_info_exchange X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20261008102615epcms2p2858ca95d96bd2b090f2e406aa1bad63c@epcms2p2> Date: Thu, 08 Oct 2026 19:26:15 +0900 X-CMS-MailID: 20261008102615epcms2p2858ca95d96bd2b090f2e406aa1bad63c Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P X-CPGSPASS: Y X-CPGSPASS: Y cpgsPolicy: CPGSC10-223,Y X-CFilter-Loop: Reflected X-CMS-RootMailID: 20261008095512epcas2p243a0deff110c0cc75da1ae049b4bbb8b References: <2lgtlg7ydx4qeau2nvv5wkcuc2jkvwdcrav7gbxmxdieptkwl4@emgyfuxuskiu> <20261008-ext4-fc-zeroout-v2-0-55cab1e24fa3@samsung.com> <20261008-ext4-fc-zeroout-v2-2-55cab1e24fa3@samsung.com> On Thu, Oct 08, 2026 at 11:55:02 +0200, Jan Kara wrote: > Just one note: I agree with you ext4_alloc_file_blocks() is actually handled > correctly. But OTOH tracking a range twice isn't really an issue (only tiny > performance overhead compared to the extent tree operations and zeroing > itself). So I just wouldn't special-case ext4_alloc_file_blocks() and > always pass a proper handle to ext4_issue_zeroout(). That keeps the logic > slightly simpler: kernel zeroes out blocks => kernel tracks the range. But > I don't really insist, it's just a suggestion. Thanks for the review. I wasn't sure I should do that in ext4_alloc_file_blocks(): f4265b8d32c4 ("ext4: add FALLOC_FL_WRITE_ZEROES support") issues the zeroout outside of the running transaction on purpose, and passing a handle there would put it under the conversion handle, so I left it as it is.