btrfs: remove unused parameter from split_item
authorDavid Sterba <dsterba@suse.com>
Fri, 10 Feb 2017 17:49:53 +0000 (18:49 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 17 Feb 2017 11:03:51 +0000 (12:03 +0100)
Never used.

Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.c

index d509dafdb20c6a0e0eb0b4a001e165ee9357538e..4c5d7c40c8bf37c99b8e49b99158b1b31fe56873 100644 (file)
@@ -4413,8 +4413,7 @@ err:
        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,
                               const struct btrfs_key *new_key,
                               unsigned long split_offset)
@@ -4511,7 +4510,7 @@ int btrfs_split_item(struct btrfs_trans_handle *trans,
        if (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;
 }