diff options
author | Jan Schmidt <list.btrfs@jan-o-sch.net> | 2012-05-16 11:04:52 -0400 |
---|---|---|
committer | Jan Schmidt <list.btrfs@jan-o-sch.net> | 2012-05-26 06:17:53 -0400 |
commit | 5581a51a59a1f5f51ac3d4bacafb738d35e0350b (patch) | |
tree | d7e291e139d08f2be7870c9da602658df8f51ce8 /fs/btrfs/ctree.h | |
parent | 976b1908d97bd8cbd024ba7aafaa3fb637ea8e13 (diff) |
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>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index ec42a24e935e..e863188a3f17 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -2496,11 +2496,11 @@ struct extent_buffer *btrfs_alloc_free_block(struct btrfs_trans_handle *trans, | |||
2496 | struct btrfs_root *root, u32 blocksize, | 2496 | struct btrfs_root *root, u32 blocksize, |
2497 | u64 parent, u64 root_objectid, | 2497 | u64 parent, u64 root_objectid, |
2498 | struct btrfs_disk_key *key, int level, | 2498 | struct btrfs_disk_key *key, int level, |
2499 | u64 hint, u64 empty_size, int for_cow); | 2499 | u64 hint, u64 empty_size); |
2500 | void btrfs_free_tree_block(struct btrfs_trans_handle *trans, | 2500 | void btrfs_free_tree_block(struct btrfs_trans_handle *trans, |
2501 | struct btrfs_root *root, | 2501 | struct btrfs_root *root, |
2502 | struct extent_buffer *buf, | 2502 | struct extent_buffer *buf, |
2503 | u64 parent, int last_ref, int for_cow); | 2503 | u64 parent, int last_ref); |
2504 | struct extent_buffer *btrfs_init_new_buffer(struct btrfs_trans_handle *trans, | 2504 | struct extent_buffer *btrfs_init_new_buffer(struct btrfs_trans_handle *trans, |
2505 | struct btrfs_root *root, | 2505 | struct btrfs_root *root, |
2506 | u64 bytenr, u32 blocksize, | 2506 | u64 bytenr, u32 blocksize, |