From: Alexander Fougner <fougner89@gmail.com>
To: linux-btrfs@vger.kernel.org
Cc: Alexander Fougner <fougner89@gmail.com>
Subject: [PATCH 1/2] btrfs-progs: clean up unnecessary headers and move radix_tree_init()
Date: Thu, 11 Feb 2016 14:01:55 +0100 [thread overview]
Message-ID: <1455195716-16282-1-git-send-email-fougner89@gmail.com> (raw)
Signed-off-by: Alexander Fougner <fougner89@gmail.com>
---
btrfs-debug-tree.c | 13 ++-----------
cmds-inspect-dump-tree.c | 2 --
2 files changed, 2 insertions(+), 13 deletions(-)
diff --git a/btrfs-debug-tree.c b/btrfs-debug-tree.c
index 057a715..d6e5a69 100644
--- a/btrfs-debug-tree.c
+++ b/btrfs-debug-tree.c
@@ -16,18 +16,7 @@
* Boston, MA 021110-1307, USA.
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <uuid/uuid.h>
-#include <getopt.h>
-
-#include "kerncompat.h"
-#include "radix-tree.h"
-#include "ctree.h"
#include "disk-io.h"
-#include "print-tree.h"
-#include "transaction.h"
#include "volumes.h"
#include "utils.h"
#include "commands.h"
@@ -42,6 +31,8 @@ int main(int ac, char **av)
if (ac > 1 && !strcmp(av[1], "--help"))
usage(cmd_inspect_dump_tree_usage);
+ radix_tree_init();
+
ret = cmd_inspect_dump_tree(ac, av);
btrfs_close_all_devices();
diff --git a/cmds-inspect-dump-tree.c b/cmds-inspect-dump-tree.c
index 8a3cf0b..0dab506 100644
--- a/cmds-inspect-dump-tree.c
+++ b/cmds-inspect-dump-tree.c
@@ -128,8 +128,6 @@ int cmd_inspect_dump_tree(int ac, char **av)
struct btrfs_root *tree_root_scan;
u64 tree_id = 0;
- radix_tree_init();
-
while (1) {
int c;
static const struct option long_options[] = {
--
2.7.1
next reply other threads:[~2016-02-11 13:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-11 13:01 Alexander Fougner [this message]
2016-02-11 13:01 ` [PATCH 2/2] btrfs-progs: add completion for subcommand dump-tree Alexander Fougner
2016-02-11 17:27 ` David Sterba
2016-02-11 17:27 ` [PATCH 1/2] btrfs-progs: clean up unnecessary headers and move radix_tree_init() David Sterba
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1455195716-16282-1-git-send-email-fougner89@gmail.com \
--to=fougner89@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).