diff mbox series

[2/2] btrfs-progs: remove stride length from on-disk format

Message ID 20231005-rst-update-v1-2-7ea5b3c6ac61@wdc.com (mailing list archive)
State New, archived
Headers show
Series btrfs-progs: update on-disk format for raid-stripe-tree | expand

Commit Message

Johannes Thumshirn Oct. 6, 2023, 6:58 a.m. UTC
Fixes: 0e6b800eb9d6 ("btrfs-progs: add raid stripe tree definitions")
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
---
 kernel-shared/accessors.h       | 8 --------
 kernel-shared/uapi/btrfs_tree.h | 2 --
 2 files changed, 10 deletions(-)
diff mbox series

Patch

diff --git a/kernel-shared/accessors.h b/kernel-shared/accessors.h
index 688edf9e909f..bc613a55ba73 100644
--- a/kernel-shared/accessors.h
+++ b/kernel-shared/accessors.h
@@ -282,7 +282,6 @@  BTRFS_SETGET_FUNCS(free_space_flags, struct btrfs_free_space_info, flags, 32);
 BTRFS_SETGET_FUNCS(stripe_extent_encoding, struct btrfs_stripe_extent, encoding, 8);
 BTRFS_SETGET_FUNCS(raid_stride_devid, struct btrfs_raid_stride, devid, 64);
 BTRFS_SETGET_FUNCS(raid_stride_offset, struct btrfs_raid_stride, offset, 64);
-BTRFS_SETGET_FUNCS(raid_stride_length, struct btrfs_raid_stride, length, 64);
 
 static inline struct btrfs_raid_stride *btrfs_raid_stride_nr(
 						 struct btrfs_stripe_extent *dps,
@@ -309,13 +308,6 @@  static inline u64 btrfs_raid_stride_offset_nr(struct extent_buffer *eb,
 	return btrfs_raid_stride_offset(eb, btrfs_raid_stride_nr(dps, nr));
 }
 
-static inline u64 btrfs_raid_stride_length_nr(struct extent_buffer *eb,
-					      struct btrfs_stripe_extent *dps,
-					      int nr)
-{
-	return btrfs_raid_stride_length(eb, btrfs_raid_stride_nr(dps, nr));
-}
-
 /* struct btrfs_inode_ref */
 BTRFS_SETGET_FUNCS(inode_ref_name_len, struct btrfs_inode_ref, name_len, 16);
 BTRFS_SETGET_FUNCS(inode_ref_index, struct btrfs_inode_ref, index, 64);
diff --git a/kernel-shared/uapi/btrfs_tree.h b/kernel-shared/uapi/btrfs_tree.h
index 8d8898b93c07..32f2c2d7c29f 100644
--- a/kernel-shared/uapi/btrfs_tree.h
+++ b/kernel-shared/uapi/btrfs_tree.h
@@ -707,8 +707,6 @@  struct btrfs_raid_stride {
 	__le64 devid;
 	/* offset from  the devextent start */
 	__le64 offset;
-	/* length of the stride on disk */
-	__le64 length;
 } __attribute__ ((__packed__));
 
 /* The stripe_extent::encoding, 1:1 mapping of enum btrfs_raid_types */