From ff76f61e98ff296c50dcca0d8fc00e912fa70bc5 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 9 Feb 2017 17:42:02 +0100 Subject: [PATCH] btrfs-progs: remove unused argument from get_raid56_used Signed-off-by: David Sterba --- cmds-fi-usage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmds-fi-usage.c b/cmds-fi-usage.c index e7436842..95742154 100644 --- a/cmds-fi-usage.c +++ b/cmds-fi-usage.c @@ -286,7 +286,7 @@ static struct btrfs_ioctl_space_args *load_space_info(int fd, char *path) * which compose the chunk, which could be different from the number of devices * if a disk is added later. */ -static void get_raid56_used(int fd, struct chunk_info *chunks, int chunkcount, +static void get_raid56_used(struct chunk_info *chunks, int chunkcount, u64 *raid5_used, u64 *raid6_used) { struct chunk_info *info_ptr = chunks; @@ -360,7 +360,7 @@ static int print_filesystem_usage_overall(int fd, struct chunk_info *chunkinfo, ret = 1; goto exit; } - get_raid56_used(fd, chunkinfo, chunkcount, &raid5_used, &raid6_used); + get_raid56_used(chunkinfo, chunkcount, &raid5_used, &raid6_used); for (i = 0; i < sargs->total_spaces; i++) { int ratio;