]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: fix front delete range calculation for RAID stripe extents
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Mon, 13 Jan 2025 19:31:45 +0000 (20:31 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 14 Jan 2025 14:49:04 +0000 (15:49 +0100)
commita678543e609dfb145f0498f895bee05bbc7994a5
tree753cbc9e42b9479e4ec4133609c9ac603ecfa401
parent5a0e38eab76991562e0754a93c2c4160819efb03
btrfs: fix front delete range calculation for RAID stripe extents

When deleting the front of a RAID stripe-extent the delete code
miscalculates the size on how much to pad the remaining extent part in the
front.

Fix the calculation so we're always having the sizes we expect.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid-stripe-tree.c