aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/btrfs
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2024-12-18 12:52:28 +0000
committerDavid Sterba <dsterba@suse.com>2025-01-13 14:53:20 +0100
commitbdf1660b221abb8660a809ab8de6b6b0e6ff0320 (patch)
tree8eb698971fcaa388f67fe3c3c5a1ca6f7d70b365 /fs/btrfs
parentbtrfs: qgroup: remove unnecessary calls to btrfs_mark_buffer_dirty() (diff)
downloadwireguard-linux-bdf1660b221abb8660a809ab8de6b6b0e6ff0320.tar.xz
wireguard-linux-bdf1660b221abb8660a809ab8de6b6b0e6ff0320.zip
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>
Diffstat (limited to 'fs/btrfs')
-rw-r--r--fs/btrfs/raid-stripe-tree.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/raid-stripe-tree.c b/fs/btrfs/raid-stripe-tree.c
index 45b823a0913a..0bf3c032d9dc 100644
--- a/fs/btrfs/raid-stripe-tree.c
+++ b/fs/btrfs/raid-stripe-tree.c
@@ -169,7 +169,6 @@ static int update_raid_extent_item(struct btrfs_trans_handle *trans,
write_extent_buffer(leaf, stripe_extent, btrfs_item_ptr_offset(leaf, slot),
item_size);
- btrfs_mark_buffer_dirty(trans, leaf);
btrfs_free_path(path);
return ret;