]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: don't set for_cow parameter for tree block functions
authorJan Schmidt <list.btrfs@jan-o-sch.net>
Wed, 16 May 2012 15:04:52 +0000 (17:04 +0200)
committerJan Schmidt <list.btrfs@jan-o-sch.net>
Sat, 26 May 2012 10:17:53 +0000 (12:17 +0200)
commit10bafcbe0b6d8ccf009249c733106989ce01d0cd
treed7e291e139d08f2be7870c9da602658df8f51ce8
parenta9eaf324029aa7f185a91946a60c6c2cfb2803a8
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: Jan Schmidt <list.btrfs@jan-o-sch.net>
fs/btrfs/ctree.c
fs/btrfs/ctree.h
fs/btrfs/disk-io.c
fs/btrfs/extent-tree.c
fs/btrfs/ioctl.c