summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-07-01 17:54:43 +0200
committerDavid Sterba <dsterba@suse.com>2015-07-01 17:54:43 +0200
commit00d07721ec732334bc0620dc3057c3f1291675df (patch)
tree507d69793d244fe24f8294b3bb8afc7736215142
parentdf4de2c089a4213ffad4681d90bd333db8d2192a (diff)
btrfs-progs: drop unused parameter from make_btrfs
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--btrfs-convert.c2
-rw-r--r--mkfs.c2
-rw-r--r--utils.c2
-rw-r--r--utils.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/btrfs-convert.c b/btrfs-convert.c
index 9bdf2be4..b89c6850 100644
--- a/btrfs-convert.c
+++ b/btrfs-convert.c
@@ -2348,7 +2348,7 @@ static int do_convert(const char *devname, int datacsum, int packing, int noxatt
mkfs_cfg.stripesize = blocksize;
mkfs_cfg.features = features;
- ret = make_btrfs(fd, devname, &mkfs_cfg);
+ ret = make_btrfs(fd, &mkfs_cfg);
if (ret) {
fprintf(stderr, "unable to create initial ctree: %s\n",
strerror(-ret));
diff --git a/mkfs.c b/mkfs.c
index 1cddaadc..59dd8848 100644
--- a/mkfs.c
+++ b/mkfs.c
@@ -1516,7 +1516,7 @@ int main(int ac, char **av)
mkfs_cfg.stripesize = stripesize;
mkfs_cfg.features = features;
- ret = make_btrfs(fd, file, &mkfs_cfg);
+ ret = make_btrfs(fd, &mkfs_cfg);
if (ret) {
fprintf(stderr, "error during mkfs: %s\n", strerror(-ret));
exit(1);
diff --git a/utils.c b/utils.c
index fdb654cb..39b295a4 100644
--- a/utils.c
+++ b/utils.c
@@ -177,7 +177,7 @@ int test_uuid_unique(char *fs_uuid)
/*
* @fs_uuid - if NULL, generates a UUID, returns back the new filesystem UUID
*/
-int make_btrfs(int fd, const char *device, struct btrfs_mkfs_config *cfg)
+int make_btrfs(int fd, struct btrfs_mkfs_config *cfg)
{
struct btrfs_super_block super;
struct extent_buffer *buf = NULL;
diff --git a/utils.h b/utils.h
index 1c763452..94606eda 100644
--- a/utils.h
+++ b/utils.h
@@ -116,7 +116,7 @@ struct btrfs_mkfs_config {
u64 features;
};
-int make_btrfs(int fd, const char *device, struct btrfs_mkfs_config *cfg);
+int make_btrfs(int fd, struct btrfs_mkfs_config *cfg);
int btrfs_make_root_dir(struct btrfs_trans_handle *trans,
struct btrfs_root *root, u64 objectid);
int btrfs_prepare_device(int fd, char *file, int zero_end, u64 *block_count_ret,