diff options
author | Tsutomu Itoh <t-itoh@jp.fujitsu.com> | 2013-04-16 01:18:22 -0400 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2013-05-06 15:54:52 -0400 |
commit | afe5fea72bd50b1df2e6a721ef50559427d42f2b (patch) | |
tree | 23c1d3f24f3e861c399425f72bc4929048467ed2 /fs/btrfs/ctree.h | |
parent | d6a0a12684523d635e0530a9d70a1eba4b8c4fb9 (diff) |
Btrfs: cleanup of function where fixup_low_keys() is called
If argument 'trans' is unnecessary in the function where
fixup_low_keys() is called, 'trans' is deleted.
Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index c3b15f8dca00..84d6d5cb02f6 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -3183,8 +3183,7 @@ int btrfs_comp_cpu_keys(struct btrfs_key *k1, struct btrfs_key *k2); | |||
3183 | int btrfs_previous_item(struct btrfs_root *root, | 3183 | int btrfs_previous_item(struct btrfs_root *root, |
3184 | struct btrfs_path *path, u64 min_objectid, | 3184 | struct btrfs_path *path, u64 min_objectid, |
3185 | int type); | 3185 | int type); |
3186 | void btrfs_set_item_key_safe(struct btrfs_trans_handle *trans, | 3186 | void btrfs_set_item_key_safe(struct btrfs_root *root, struct btrfs_path *path, |
3187 | struct btrfs_root *root, struct btrfs_path *path, | ||
3188 | struct btrfs_key *new_key); | 3187 | struct btrfs_key *new_key); |
3189 | struct extent_buffer *btrfs_root_node(struct btrfs_root *root); | 3188 | struct extent_buffer *btrfs_root_node(struct btrfs_root *root); |
3190 | struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root); | 3189 | struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root); |
@@ -3223,9 +3222,7 @@ int btrfs_block_can_be_shared(struct btrfs_root *root, | |||
3223 | void btrfs_extend_item(struct btrfs_trans_handle *trans, | 3222 | void btrfs_extend_item(struct btrfs_trans_handle *trans, |
3224 | struct btrfs_root *root, struct btrfs_path *path, | 3223 | struct btrfs_root *root, struct btrfs_path *path, |
3225 | u32 data_size); | 3224 | u32 data_size); |
3226 | void btrfs_truncate_item(struct btrfs_trans_handle *trans, | 3225 | void btrfs_truncate_item(struct btrfs_root *root, struct btrfs_path *path, |
3227 | struct btrfs_root *root, | ||
3228 | struct btrfs_path *path, | ||
3229 | u32 new_size, int from_end); | 3226 | u32 new_size, int from_end); |
3230 | int btrfs_split_item(struct btrfs_trans_handle *trans, | 3227 | int btrfs_split_item(struct btrfs_trans_handle *trans, |
3231 | struct btrfs_root *root, | 3228 | struct btrfs_root *root, |
@@ -3265,8 +3262,7 @@ static inline int btrfs_del_item(struct btrfs_trans_handle *trans, | |||
3265 | return btrfs_del_items(trans, root, path, path->slots[0], 1); | 3262 | return btrfs_del_items(trans, root, path, path->slots[0], 1); |
3266 | } | 3263 | } |
3267 | 3264 | ||
3268 | void setup_items_for_insert(struct btrfs_trans_handle *trans, | 3265 | void setup_items_for_insert(struct btrfs_root *root, struct btrfs_path *path, |
3269 | struct btrfs_root *root, struct btrfs_path *path, | ||
3270 | struct btrfs_key *cpu_key, u32 *data_size, | 3266 | struct btrfs_key *cpu_key, u32 *data_size, |
3271 | u32 total_data, u32 total_size, int nr); | 3267 | u32 total_data, u32 total_size, int nr); |
3272 | int btrfs_insert_item(struct btrfs_trans_handle *trans, struct btrfs_root | 3268 | int btrfs_insert_item(struct btrfs_trans_handle *trans, struct btrfs_root |