Skip to content
Commit 5581a51a authored by Jan Schmidt's avatar Jan Schmidt
Browse files

Btrfs: don't set for_cow parameter for tree block functions



Three callers of btrfs_free_tree_block or btrfs_alloc_tree_block passed
parameter for_cow = 1. In fact, these two functions should never mark
their tree modification operations as for_cow, because they can change
the number of blocks referenced by a tree.

Hence, we remove the extra for_cow parameter from these functions and
make them pass a zero down.

Signed-off-by: default avatarJan Schmidt <list.btrfs@jan-o-sch.net>
parent 976b1908
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment