Skip to content

Commit ef08382

Browse files
fdmananakdave
authored andcommitted
btrfs: remove pointless data_end assignment in btrfs_extent_item()
There's no point in setting 'data_end' to 'old_data' as we don't use it afterwards. So remove the redundant assignment which was never needed and added when the function was first added in commit 6567e83 ("Btrfs: early work to file_write in big extents"). Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 29d4bf1 commit ef08382

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/btrfs/ctree.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4136,7 +4136,6 @@ void btrfs_extend_item(struct btrfs_trans_handle *trans,
41364136
memmove_leaf_data(leaf, data_end - data_size, data_end,
41374137
old_data - data_end);
41384138

4139-
data_end = old_data;
41404139
old_size = btrfs_item_size(leaf, slot);
41414140
btrfs_set_item_size(leaf, slot, old_size + data_size);
41424141
btrfs_mark_buffer_dirty(trans, leaf);

0 commit comments

Comments
 (0)