]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: raid-stripe-tree: remove unnecessary call to btrfs_mark_buffer_dirty()
authorFilipe Manana <fdmanana@suse.com>
Wed, 18 Dec 2024 12:52:28 +0000 (12:52 +0000)
committerDavid Sterba <dsterba@suse.com>
Mon, 13 Jan 2025 13:53:20 +0000 (14:53 +0100)
commitbdf1660b221abb8660a809ab8de6b6b0e6ff0320
tree8eb698971fcaa388f67fe3c3c5a1ca6f7d70b365
parentd74a36f37e29b6457c8405ed85c5d426c2afd077
btrfs: raid-stripe-tree: remove unnecessary call to btrfs_mark_buffer_dirty()

The call to btrfs_mark_buffer_dirty() at update_raid_extent_item() is not
necessary as we have a path setup for writing with btrfs_search_slot()
having a 'cow' argument set to 1.

This just makes the code more verbose, confusing and add a little extra
overhead and well as increase the module's text size, so remove it.

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