Browse Source

btrfs: remove unused parameter from split_item

Never used.

Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
David Sterba 8 years ago
parent
commit
4961e2930f
1 changed files with 2 additions and 3 deletions
  1. 2 3
      fs/btrfs/ctree.c

+ 2 - 3
fs/btrfs/ctree.c

@@ -4413,8 +4413,7 @@ err:
 	return ret;
 	return ret;
 }
 }
 
 
-static noinline int split_item(struct btrfs_trans_handle *trans,
-			       struct btrfs_fs_info *fs_info,
+static noinline int split_item(struct btrfs_fs_info *fs_info,
 			       struct btrfs_path *path,
 			       struct btrfs_path *path,
 			       const struct btrfs_key *new_key,
 			       const struct btrfs_key *new_key,
 			       unsigned long split_offset)
 			       unsigned long split_offset)
@@ -4511,7 +4510,7 @@ int btrfs_split_item(struct btrfs_trans_handle *trans,
 	if (ret)
 	if (ret)
 		return ret;
 		return ret;
 
 
-	ret = split_item(trans, root->fs_info, path, new_key, split_offset);
+	ret = split_item(root->fs_info, path, new_key, split_offset);
 	return ret;
 	return ret;
 }
 }