kdave / btrfs-progs

Development of userspace BTRFS tools
GNU General Public License v2.0
527 stars 239 forks source link

btrfs-progs: do not check ram_bytes for non-compressed data extents #828

Closed adam900710 closed 6 days ago

adam900710 commented 1 week ago

This patch reverts the following 3 commits: d0cc40d23aa0 ("btrfs-progs: tests: add test case for ram_bytes detection and repair") 7313573c1942 ("btrfs-progs: check: original, detect and repair ram_bytes mismatch") 97bf7a596900 ("btrfs-progs: check: lowmem, detect and repair mismatched ram_bytes")

The problem with the ram_bytes check is, kernel can handle it without any problem, and the original objective for this is to detect such problem as I immaturelly believe the problem is fixed.

But it turns out to be incorrect and this check is already causing problems.

Fix it by doing a full revert for now.

kdave commented 6 days ago

Merged to devel, thanks.