aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/delayed-inode.c
diff options
context:
space:
mode:
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>2013-04-16 01:18:22 -0400
committerJosef Bacik <jbacik@fusionio.com>2013-05-06 15:54:52 -0400
commitafe5fea72bd50b1df2e6a721ef50559427d42f2b (patch)
tree23c1d3f24f3e861c399425f72bc4929048467ed2 /fs/btrfs/delayed-inode.c
parentd6a0a12684523d635e0530a9d70a1eba4b8c4fb9 (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/delayed-inode.c')
-rw-r--r--fs/btrfs/delayed-inode.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/delayed-inode.c
index 14fce27b4780..71b78c27496d 100644
--- a/fs/btrfs/delayed-inode.c
+++ b/fs/btrfs/delayed-inode.c
@@ -766,10 +766,9 @@ static void btrfs_delayed_inode_release_metadata(struct btrfs_root *root,
766 * This helper will insert some continuous items into the same leaf according 766 * This helper will insert some continuous items into the same leaf according
767 * to the free space of the leaf. 767 * to the free space of the leaf.
768 */ 768 */
769static int btrfs_batch_insert_items(struct btrfs_trans_handle *trans, 769static int btrfs_batch_insert_items(struct btrfs_root *root,
770 struct btrfs_root *root, 770 struct btrfs_path *path,
771 struct btrfs_path *path, 771 struct btrfs_delayed_item *item)
772 struct btrfs_delayed_item *item)
773{ 772{
774 struct btrfs_delayed_item *curr, *next; 773 struct btrfs_delayed_item *curr, *next;
775 int free_space; 774 int free_space;
@@ -848,7 +847,7 @@ static int btrfs_batch_insert_items(struct btrfs_trans_handle *trans,
848 btrfs_clear_path_blocking(path, NULL, 0); 847 btrfs_clear_path_blocking(path, NULL, 0);
849 848
850 /* insert the keys of the items */ 849 /* insert the keys of the items */
851 setup_items_for_insert(trans, root, path, keys, data_size, 850 setup_items_for_insert(root, path, keys, data_size,
852 total_data_size, total_size, nitems); 851 total_data_size, total_size, nitems);
853 852
854 /* insert the dir index items */ 853 /* insert the dir index items */
@@ -932,7 +931,7 @@ do_again:
932 if (curr && btrfs_is_continuous_delayed_item(prev, curr)) { 931 if (curr && btrfs_is_continuous_delayed_item(prev, curr)) {
933 /* insert the continuous items into the same leaf */ 932 /* insert the continuous items into the same leaf */
934 path->slots[0]++; 933 path->slots[0]++;
935 btrfs_batch_insert_items(trans, root, path, curr); 934 btrfs_batch_insert_items(root, path, curr);
936 } 935 }
937 btrfs_release_delayed_item(prev); 936 btrfs_release_delayed_item(prev);
938 btrfs_mark_buffer_dirty(path->nodes[0]); 937 btrfs_mark_buffer_dirty(path->nodes[0]);