linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs: RST scrub fixes for prealloc
@ 2024-10-07 11:52 Johannes Thumshirn
  2024-10-07 11:52 ` [PATCH 1/2] btrfs: return ENODATA in case RST lookup fails Johannes Thumshirn
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Johannes Thumshirn @ 2024-10-07 11:52 UTC (permalink / raw)
  To: David Sterba, Chris Mason, Josef Bacik; +Cc: linux-btrfs, Johannes Thumshirn

From: Johannes Thumshirn <johannes.thumshirn@wdc.com>

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(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-10-08 17:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-07 11:52 [PATCH 0/2] btrfs: RST scrub fixes for prealloc Johannes Thumshirn
2024-10-07 11:52 ` [PATCH 1/2] btrfs: return ENODATA in case RST lookup fails Johannes Thumshirn
2024-10-07 11:52 ` [PATCH 2/2] btrfs: scrub: skip initial RAID stripe-tree lookup errors Johannes Thumshirn
2024-10-08 17:05   ` David Sterba
2024-10-07 15:02 ` [PATCH 0/2] btrfs: RST scrub fixes for prealloc Josef Bacik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).