Skip to content

btrfs: fixes for commit 947a629988f1 ("btrfs: move tree block parentness check into validate_extent_buffer()")

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: add error message for metadata level mismatchfs/btrfs/disk-io.c+4 -00 replies
2/2btrfs: fix the false alert on bad tree levelfs/btrfs/extent_io.c+26 -51 reply

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchMikhail Gavrilov
1/2
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] btrfs: fixes for commit 947a629988f1 ("btrfs: move tree block parentness check into validate_extent_buffer()")

There is a regression report from Mikhail that his btrfs RAID0 fs randomly flips to RO after commit 947a629988f1.

It turns out that, the offending commit can not handle tree blocks crossing stripe boundary.

Although tree blocks crossing stripe boundary is not an ideal situation, we should still be able to correctly handle it.

This patchset firstly adds the missing level mismatch error message, then fix the offending commit.

Qu Wenruo (2):
btrfs: add error message for metadata level mismatch
btrfs: fix the false alert on bad tree level

 fs/btrfs/disk-io.c   |  4 ++++
 fs/btrfs/extent_io.c | 31 ++++++++++++++++++++++++++-----
 2 files changed, 30 insertions(+), 5 deletions(-)
Signature · 1 line
2.39.0