aboutsummaryrefslogtreecommitdiffstats
path: root/cmds-filesystem.c
diff options
context:
space:
mode:
authorPatrik Lundquist <patrik.lundquist@gmail.com>2015-07-24 12:21:02 +0200
committerDavid Sterba <dsterba@suse.com>2015-08-31 19:25:09 +0200
commitef433bb08388461ec551188705820ca4d26832b5 (patch)
tree6114275c03aea92e8dcd305e21a2cf6042f9e65d /cmds-filesystem.c
parent44de34b14da87096d373f90aa29482812fc3c70c (diff)
downloadbtrfs-progs-ef433bb08388461ec551188705820ca4d26832b5.tar.gz
btrfs-progs-ef433bb08388461ec551188705820ca4d26832b5.tar.xz
btrfs-progs-ef433bb08388461ec551188705820ca4d26832b5.zip
btrfs-progs: defrag: remove unused variable
A leftover from when recursive defrag was added. Signed-off-by: Patrik Lundquist <patrik.lundquist@gmail.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-filesystem.c')
-rw-r--r--cmds-filesystem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmds-filesystem.c b/cmds-filesystem.c
index bbbd62c..03c67a5 100644
--- a/cmds-filesystem.c
+++ b/cmds-filesystem.c
@@ -1131,7 +1131,6 @@ static int cmd_filesystem_defrag(int argc, char **argv)
int i;
int recursive = 0;
int ret = 0;
- struct btrfs_ioctl_defrag_range_args range;
int e = 0;
int compress_type = BTRFS_COMPRESS_NONE;
DIR *dirstream;
@@ -1189,7 +1188,7 @@ static int cmd_filesystem_defrag(int argc, char **argv)
if (check_argc_min(argc - optind, 1))
usage(cmd_filesystem_defrag_usage);
- memset(&defrag_global_range, 0, sizeof(range));
+ memset(&defrag_global_range, 0, sizeof(defrag_global_range));
defrag_global_range.start = start;
defrag_global_range.len = len;
defrag_global_range.extent_thresh = (u32)thresh;