Skip to content

btrfs: RST scrub fixes for prealloc

Johannes Thumshirn 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: return ENODATA in case RST lookup failsfs/btrfs/raid-stripe-tree.c+3 -30 replies
2/2btrfs: scrub: skip initial RAID stripe-tree lookup errorsfs/btrfs/scrub.c+4 -21 reply

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJosef Bacik
SeriesR-b
1/2
2/2

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: RST scrub fixes for prealloc

From: Johannes Thumshirn <[email protected]>

When scrubbing a non-zoned RAID stripe tree filesystem, the RST specific scrub code finds false positives becuase preallocated extents are not backed by the stripe-tree and so the lookup failes.

These patches address the issue by a) changing RST lookup failures from ENOENT to ENODATA and b) skipping ENODATA on RST mapping errors from the scrub side.

This aproach was suggested by Josef in
https://lore.kernel.org/linux-btrfs/20240923152705.GB159452@perftesting/

Johannes Thumshirn (2):
btrfs: return ENODATA in case RST lookup fails
btrfs: scrub: skip initial RAID stripe-tree lookup errors

 fs/btrfs/raid-stripe-tree.c | 6 +++---
 fs/btrfs/scrub.c            | 6 ++++--
 2 files changed, 7 insertions(+), 5 deletions(-)
Signature · 1 line
2.43.0