Skip to content

btrfs: fixes for subpage which also affect read-only mount

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: fix wild pointer access during metadata read failure for subpagefs/btrfs/extent_io.c+30 -14 replies
2/2btrfs: make reada to be subpage compatiblefs/btrfs/reada.c+18 -171 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJohannes Thumshirn
1/2
2/2R-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 subpage which also affect read-only mount

During the fstests run for btrfs subpage read-write support, generic/475 crashes the system with a very high chance.

It turns out the cause is also affecting btrfs subpage read-only mount so it's worthy a quick fix.

Also the crash call site shows a new rabbit hole of hard coded PAGE_SHIFT in readahead.
This reada problem does not only greatly slow down my test on my ARM board, but also affects read-only mount.

So this patchset is here to address the problems, and hope these fixes can fit into current merge window.

Qu Wenruo (2):
btrfs: fix wild pointer access during metadata read failure for
subpage
btrfs: make reada to be subpage compatible

 fs/btrfs/extent_io.c | 31 ++++++++++++++++++++++++++++++-
 fs/btrfs/reada.c     | 35 ++++++++++++++++++-----------------
 2 files changed, 48 insertions(+), 18 deletions(-)
Signature · 1 line
2.30.1