summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/raid-stripe-tree.h
diff options
context:
space:
mode:
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>2023-09-14 09:06:59 -0700
committerDavid Sterba <dsterba@suse.com>2023-10-12 16:44:09 +0200
commitca41504efda646d9c4b00c37be52f5ba07cebebf (patch)
tree2834c9b5cd6440c25cc5b8508371e8c8998c2158 /fs/btrfs/raid-stripe-tree.h
parent02c372e1f016e5113217597ab37b399c4e407477 (diff)
downloadlinux-ca41504efda646d9c4b00c37be52f5ba07cebebf.tar.gz
linux-ca41504efda646d9c4b00c37be52f5ba07cebebf.tar.bz2
linux-ca41504efda646d9c4b00c37be52f5ba07cebebf.zip
btrfs: delete stripe extent on extent deletion
As each stripe extent is tied to an extent item, delete the stripe extent once the corresponding extent item is deleted. Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/raid-stripe-tree.h')
-rw-r--r--fs/btrfs/raid-stripe-tree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/raid-stripe-tree.h b/fs/btrfs/raid-stripe-tree.h
index 7a169e75ad6d..9476131a6497 100644
--- a/fs/btrfs/raid-stripe-tree.h
+++ b/fs/btrfs/raid-stripe-tree.h
@@ -11,6 +11,7 @@ struct btrfs_io_stripe;
struct btrfs_ordered_extent;
struct btrfs_trans_handle;
+int btrfs_delete_raid_extent(struct btrfs_trans_handle *trans, u64 start, u64 length);
int btrfs_insert_raid_extent(struct btrfs_trans_handle *trans,
struct btrfs_ordered_extent *ordered_extent);