From: Daejun Park <daejun7.park@samsung.com>
To: Jan Kara <jack@suse.cz>
Cc: Theodore Ts'o <tytso@mit.edu>,
"linux-ext4@vger.kernel.org" <linux-ext4@vger.kernel.org>,
Andreas Dilger <adilger.kernel@dilger.ca>,
Baokun Li <libaokun@linux.alibaba.com>,
Ojaswin Mujoo <ojaswin@linux.ibm.com>,
"Ritesh Harjani (IBM)" <ritesh.list@gmail.com>,
Zhang Yi <yi.zhang@huawei.com>,
Zhang Yi <yi.zhang@huaweicloud.com>,
Harshad Shirwadkar <harshadshirwadkar@gmail.com>,
Li Chen <me@linux.beauty>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"stable@vger.kernel.org" <stable@vger.kernel.org>,
Daejun Park <daejun7.park@samsung.com>
Subject: RE:(2) [PATCH v2 2/2] ext4: track zeroed out blocks of unwritten extents for fast commit
Date: Thu, 08 Oct 2026 19:26:15 +0900 [thread overview]
Message-ID: <20261008102615epcms2p2858ca95d96bd2b090f2e406aa1bad63c@epcms2p2> (raw)
In-Reply-To: <2lgtlg7ydx4qeau2nvv5wkcuc2jkvwdcrav7gbxmxdieptkwl4@emgyfuxuskiu>
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.
next prev parent reply other threads:[~2026-10-08 10:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-08 1:25 [PATCH v2 0/2] ext4: fix fast commit and extent status after unwritten extent zero-out Daejun Park via B4 Relay
2026-10-08 1:25 ` [PATCH v2 1/2] ext4: don't cache unzeroed blocks as written after a failed zeroout Daejun Park via B4 Relay
2026-10-08 9:30 ` Ojaswin Mujoo
2026-10-08 1:25 ` [PATCH v2 2/2] ext4: track zeroed out blocks of unwritten extents for fast commit Daejun Park via B4 Relay
2026-10-08 9:55 ` Jan Kara
[not found] ` <CGME20261008095512epcas2p243a0deff110c0cc75da1ae049b4bbb8b@epcms2p2>
2026-10-08 10:26 ` Daejun Park [this message]
2026-10-08 11:12 ` (2) " Jan Kara
2026-11-19 14:46 ` [PATCH v2 0/2] ext4: fix fast commit and extent status after unwritten extent zero-out Theodore Ts'o
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261008102615epcms2p2858ca95d96bd2b090f2e406aa1bad63c@epcms2p2 \
--to=daejun7.park@samsung.com \
--cc=adilger.kernel@dilger.ca \
--cc=harshadshirwadkar@gmail.com \
--cc=jack@suse.cz \
--cc=libaokun@linux.alibaba.com \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=me@linux.beauty \
--cc=ojaswin@linux.ibm.com \
--cc=ritesh.list@gmail.com \
--cc=stable@vger.kernel.org \
--cc=tytso@mit.edu \
--cc=yi.zhang@huawei.com \
--cc=yi.zhang@huaweicloud.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®