Re: [PATCH v3] btrfs: tree-checker: reject file extents with oversized disk_num_bytes

From: Qu Wenruo

Date: Tue Nov 17 2026 - 00:39:02 EST




在 2026/11/17 15:27, Cheng Yongkang 写道:
On 2026/11/17 15:01, Qu Wenruo wrote:
I don't know which agent you're using, but I have seen several ones (not
only from you) doing this linking-to-older-versions behavior.

It doesn't make much sense.
[...]
And the full changelog would make more sense, other than letting the
reviewer to jump to your previous version for history.

The links came from Documentation/process/submitting-patches.rst, which
recommends adding lore links to previous versions after the "---" line.
Its example also lists the changes of every version, though, and I only
listed the v3 changes. That was my mistake.

I'll follow the btrfs style from now on: the full changelog of all
versions, without links to the older ones.

I think the ram bytes check should apply to both compressed and
uncompressed extents.

For compressed, it's MAX_UNCOMPRESSED, and for uncompressed it's U32_MAX.

Will do in v4, with max_ram_bytes picked the same way as
max_disk_num_bytes.

And Sashiko has some reviews too:

https://sashiko.dev/#/patchset/20261117023841.467366-1-teel4res%40gmail.com


Thanks,
Cheng Yongkang