]> www.infradead.org Git - users/dwmw2/linux.git/commit
btrfs: remove code duplication in ordered extent finishing
authorJohannes Thumshirn <johannes.thumshirn@wdc.com>
Fri, 27 Sep 2024 10:30:05 +0000 (12:30 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 11 Nov 2024 13:34:13 +0000 (14:34 +0100)
commit2206265f41e979b37213fa6da14e73f837c57a54
tree0f1d703fa0bc293c197163fce8b7baeb7d400717
parent7e06de7c83a746e58d4701e013182af133395188
btrfs: remove code duplication in ordered extent finishing

Remove the duplicated transaction joining, block reserve setting and raid
extent inserting in btrfs_finish_ordered_extent().

While at it, also abort the transaction in case inserting a RAID
stripe-tree entry fails.

Suggested-by: Naohiro Aota <naohiro.aota@wdc.com>
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/inode.c