Skip to content

RFC Add dummy RAID stripe tree entries for PREALLOC data

Johannes Thumshirn linux-btrfs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs: introduce dummy RAID stripes for preallocated datafs/btrfs/raid-stripe-tree.c fs/btrfs/raid-stripe-tree.h include/uapi/linux/btrfs_tree.h+46 -00 replies
2/2btrfs: insert dummy RAID stripe extents for preallocated datafs/btrfs/inode.c fs/btrfs/raid-stripe-tree.c+51 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/2] Add dummy RAID stripe tree entries for PREALLOC data

This is an RFC implementation of Qu's request to be able to distinguish preallocated extents in the stripe tree for scrub.

It's not 100% working yet but only showing the basic "how it's going to look like".

I'm not really sure this is a better solution than returning ENOENT and ignoring it in scrub.

A third possibility would be to do a full backref walk on btrfs_map_block() error and then check if it's a preallocated extent.

Johannes Thumshirn (2):
btrfs: introduce dummy RAID stripes for preallocated data
btrfs: insert dummy RAID stripe extents for preallocated data

 fs/btrfs/inode.c                | 47 +++++++++++++++++++++++++++++++++
 fs/btrfs/raid-stripe-tree.c     | 47 +++++++++++++++++++++++++++++++++
 fs/btrfs/raid-stripe-tree.h     |  2 ++
 include/uapi/linux/btrfs_tree.h |  1 +
 4 files changed, 97 insertions(+)
Signature · 1 line
2.43.0